Fix warnings about unused variables
Found by ICC qglengineshadermanager.cpp(427): warning #177: variable "none" was declared but never referenced Change-Id: Id3d5c7bf4d4c45069621ffff13f758ffaf1744d7 Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
This commit is contained in:
parent
5f1a0cb42a
commit
84e1bb4951
@ -424,11 +424,10 @@ QGLEngineShaderProg *QGLEngineSharedShaders::findProgramInCache(const QGLEngineS
|
|||||||
if (!inCache)
|
if (!inCache)
|
||||||
shaderCache.store(newProg->program, QGLContext::currentContext());
|
shaderCache.store(newProg->program, QGLContext::currentContext());
|
||||||
} else {
|
} else {
|
||||||
QLatin1String none("none");
|
|
||||||
QLatin1String br("\n");
|
|
||||||
QString error;
|
QString error;
|
||||||
error = QLatin1String("Shader program failed to link,");
|
error = QLatin1String("Shader program failed to link,");
|
||||||
#if defined(QT_DEBUG)
|
#if defined(QT_DEBUG)
|
||||||
|
QLatin1String br("\n");
|
||||||
error += QLatin1String("\n Shaders Used:\n");
|
error += QLatin1String("\n Shaders Used:\n");
|
||||||
for (int i = 0; i < newProg->program->shaders().count(); ++i) {
|
for (int i = 0; i < newProg->program->shaders().count(); ++i) {
|
||||||
QGLShader *shader = newProg->program->shaders().at(i);
|
QGLShader *shader = newProg->program->shaders().at(i);
|
||||||
|
Loading…
Reference in New Issue
Block a user