mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
Fixed a GCC compiler warning
This commit is contained in:
parent
4ddf13a833
commit
cfa53c5097
|
@ -273,11 +273,11 @@ void ShaderOpenGL::printShaderInfoLog(GLuint shaderID, GLenum shaderType, bool e
|
|||
int maxLength;
|
||||
|
||||
glGetShaderiv(shaderID, GL_INFO_LOG_LENGTH, &maxLength);
|
||||
std::vector<char> infoLog(maxLength);
|
||||
|
||||
if (infoLog.size() == 0)
|
||||
if (maxLength == 0)
|
||||
return;
|
||||
|
||||
std::vector<char> infoLog(maxLength);
|
||||
glGetShaderInfoLog(shaderID, maxLength, &logLength, &infoLog.front());
|
||||
|
||||
if (logLength > 0) {
|
||||
|
|
Loading…
Reference in a new issue