summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2009-10-01 04:26:34 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2009-10-01 04:26:34 (GMT)
commit9dc9084a2ede875495e078e6998476f2ae5ea4e5 (patch)
tree218367ca3493a0e244357050b040ea7e1aa4e9b1 /src/opengl/gl2paintengineex/qglengineshadermanager_p.h
parent5496fbd5f4e5f272ba4f8150c909206ad409fd1d (diff)
downloadQt-9dc9084a2ede875495e078e6998476f2ae5ea4e5.zip
Qt-9dc9084a2ede875495e078e6998476f2ae5ea4e5.tar.gz
Qt-9dc9084a2ede875495e078e6998476f2ae5ea4e5.tar.bz2
Use QGLSharedResourceGuard to track contexts in the shader manager
Reviewed-by: Sarah Smith
Diffstat (limited to 'src/opengl/gl2paintengineex/qglengineshadermanager_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qglengineshadermanager_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qglengineshadermanager_p.h b/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
index 47d9a2a..fbb6d9c 100644
--- a/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
+++ b/src/opengl/gl2paintengineex/qglengineshadermanager_p.h
@@ -361,7 +361,7 @@ private slots:
void shaderDestroyed(QObject *shader);
private:
- QGLContextGroup *ctx;
+ QGLSharedResourceGuard ctxGuard;
QGLShaderProgram *blitShaderProg;
QGLShaderProgram *simpleShaderProg;
QList<QGLEngineShaderProg> cachedPrograms;