diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-31 00:44:26 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2009-08-31 00:44:26 (GMT) |
commit | 528106b2ffa39b8f0a2bc4d1b4e23419eaf454ca (patch) | |
tree | 94504bf44deaea9e51ac1bd748e8996c18136a2f /src/opengl/qglshaderprogram.h | |
parent | be1140bf0040963b50a5b80be123245c98833b96 (diff) | |
download | Qt-528106b2ffa39b8f0a2bc4d1b4e23419eaf454ca.zip Qt-528106b2ffa39b8f0a2bc4d1b4e23419eaf454ca.tar.gz Qt-528106b2ffa39b8f0a2bc4d1b4e23419eaf454ca.tar.bz2 |
Remove QGLShader from its QGLShaderProgram when it is destroyed
Reviewed-by: Samuel
Diffstat (limited to 'src/opengl/qglshaderprogram.h')
-rw-r--r-- | src/opengl/qglshaderprogram.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/qglshaderprogram.h b/src/opengl/qglshaderprogram.h index d747679..8d6efab 100644 --- a/src/opengl/qglshaderprogram.h +++ b/src/opengl/qglshaderprogram.h @@ -282,6 +282,9 @@ public: static bool hasShaderPrograms(const QGLContext *context = 0); +private Q_SLOTS: + void shaderDestroyed(); + private: QGLShaderProgramPrivate *d; |