Fixed QOpenGLShader::log().
authorKim Motoyoshi Kalland <kim.kalland@nokia.com>
Wed, 11 Jan 2012 09:38:48 +0000 (10:38 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 11 Jan 2012 22:55:58 +0000 (23:55 +0100)
log() returned an empty string because the compile log was stored
in a local variable rather than the member variable.

Change-Id: I60142fd0bccfcbb495cea430b583f81fb0241329
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
src/gui/opengl/qopenglshaderprogram.cpp

index 26b2120..fab764e 100644 (file)
@@ -265,7 +265,6 @@ bool QOpenGLShaderPrivate::compile(QOpenGLShader *q)
             glfuncs->glGetShaderSource(shader, sourceCodeLength, &temp, sourceCodeBuffer);
         }
 
-        QString log;
         if (logBuffer)
             log = QString::fromLatin1(logBuffer);
         else