diff Framework/OpenGL/OpenGLShader.cpp @ 599:6da17230c7a3

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 27 Apr 2019 10:56:25 +0200
parents 434ceeb0bcab
children 58e1faeafb1b
line wrap: on
line diff
--- a/Framework/OpenGL/OpenGLShader.cpp	Fri Apr 26 17:57:57 2019 +0200
+++ b/Framework/OpenGL/OpenGLShader.cpp	Sat Apr 27 10:56:25 2019 +0200
@@ -53,7 +53,7 @@
         int infoLen = 0;
         glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &infoLen);
 
-        if (infoLen > 0)
+        if (infoLen > 1)  // Might be equal to 1, which amounts to no error
         {
           std::string infoLog;
           infoLog.resize(infoLen + 1);