summaryrefslogtreecommitdiffstats
path: root/src/render/materialsystem/shader_p.h
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2016-05-21 20:05:41 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-05-22 06:00:08 +0000
commit784c89cedb817c8329edcc7ec53dad23a9cae1f2 (patch)
tree3686b32fd09d28705557998291cf1e47b9ee0a38 /src/render/materialsystem/shader_p.h
parent0697e2d23622d1d2f40c275194fb5479a48f7be0 (diff)
Fix dynamic shader code updates
Being careful to remove cached pointer to the shader program from the graphics context. Task-number: QTBUG-53527 Change-Id: Icee8aaa3f0900c7aa42598ad81b3f368f0338f46 Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/materialsystem/shader_p.h')
-rw-r--r--src/render/materialsystem/shader_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/materialsystem/shader_p.h b/src/render/materialsystem/shader_p.h
index 0bf0c528f..1d92b4f4d 100644
--- a/src/render/materialsystem/shader_p.h
+++ b/src/render/materialsystem/shader_p.h
@@ -144,6 +144,7 @@ private:
bool m_isLoaded;
ProgramDNA m_dna;
+ ProgramDNA m_oldDna;
QMutex m_mutex;
GraphicsContext *m_graphicsContext;