Fixed QOpenGLShader::log().

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>
This commit is contained in:
Kim Motoyoshi Kalland 2012-01-11 10:38:48 +01:00 committed by Qt by Nokia
parent fc4cc4598e
commit e77ef98683

View 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