summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-07-29 13:32:02 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-07-29 13:32:02 (GMT)
commitd279a24b93b749ca27db39239f1eb03b4992eebb (patch)
treee6104ce31b898404d33a842cac3a52cdc207883d /src/opengl/gl2paintengineex/qglengineshadermanager_p.h
parent928eb3dee17f43d54262d1f3dfc5212f183e6ce9 (diff)
downloadQt-d279a24b93b749ca27db39239f1eb03b4992eebb.zip
Qt-d279a24b93b749ca27db39239f1eb03b4992eebb.tar.gz
Qt-d279a24b93b749ca27db39239f1eb03b4992eebb.tar.bz2
Fixed various valgrind-reported issues in GL 2 engine.
Diffstat (limited to 'src/opengl/gl2paintengineex/qglengineshadermanager_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qglengineshadermanager_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/opengl/gl2paintengineex/qglengineshadermanager_p.h b/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
index 8122a08..884e687 100644
--- a/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
+++ b/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
@@ -428,10 +428,9 @@ private:
QGLShaderProgram* simpleShaderProg;
QGLEngineShaderProg* currentShaderProg;
- QCache<QByteArray, QGLShader> customShaderCache;
-
// TODO: Possibly convert to a LUT
QList<QGLEngineShaderProg> cachedPrograms;
+ QCache<QByteArray, QGLShader> customShaderCache;
QGLShader* compiledShaders[TotalShaderCount];