diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2016-04-15 13:55:03 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-04-17 12:26:08 +0000 |
commit | bef819368d861f386be44714f7c8d053c1bb2734 (patch) | |
tree | c290321da683c6d7b439183fb3491c837b6946a9 /src/render/graphicshelpers/graphicscontext_p.h | |
parent | 042c380b5885d15925bf66400ebeaa1dc0e7dda0 (diff) |
Remove shader from cache in graphics context cache when deleted
Stops assert firing when trying to use a recycled Shader
Change-Id: Ifa18143a145654fd3f9e381627406e907a9e2d48
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext_p.h')
-rw-r--r-- | src/render/graphicshelpers/graphicscontext_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicscontext_p.h b/src/render/graphicshelpers/graphicscontext_p.h index 7c744ba12..d73858cdd 100644 --- a/src/render/graphicshelpers/graphicscontext_p.h +++ b/src/render/graphicshelpers/graphicscontext_p.h @@ -127,6 +127,7 @@ public: void activateShader(Shader* shader); QOpenGLShaderProgram *containsProgram(const ProgramDNA &dna); + void removeProgram(const ProgramDNA &dna, Qt3DCore::QNodeId id); GLuint activeFBO() const { return m_activeFBO; } GLuint defaultFBO() const { return m_defaultFBO; } |