changeset 599:6da17230c7a3

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 27 Apr 2019 10:56:25 +0200
parents a806abb497b8
children 6129b1e5ba42
files Framework/OpenGL/OpenGLShader.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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);