summaryrefslogtreecommitdiffstats
path: root/src/render/graphicshelpers/graphicscontext_p.h
diff options
context:
space:
mode:
authorPaul Lemire <paul.lemire@kdab.com>2016-01-22 11:31:22 +0100
committerPaul Lemire <paul.lemire@kdab.com>2016-03-17 11:27:53 +0000
commit7ff2cc9c1f037fa9159bc24d8a47778ebac2390a (patch)
treed96af4c0415662906c1c6fa5a64601b539cb106a /src/render/graphicshelpers/graphicscontext_p.h
parentc01bc22c287e58186a285b3f8507711fd982fd05 (diff)
Renderer/QRenderTargetSurfaceSelector: implement proper synchronization
This is needed to avoid rendering on a surface that has been destroyed. Change-Id: Iadc2a32e2e0113704ca4df48df6bcdd1a0d8256c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'src/render/graphicshelpers/graphicscontext_p.h')
-rw-r--r--src/render/graphicshelpers/graphicscontext_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/render/graphicshelpers/graphicscontext_p.h b/src/render/graphicshelpers/graphicscontext_p.h
index dbedd57e0..ca5f43c7a 100644
--- a/src/render/graphicshelpers/graphicscontext_p.h
+++ b/src/render/graphicshelpers/graphicscontext_p.h
@@ -123,6 +123,7 @@ public:
bool makeCurrent(QSurface *surface);
void doneCurrent();
void activateGLHelper();
+ bool hasValidGLHelper() const;
void activateShader(Shader* shader);
QOpenGLShaderProgram *containsProgram(const ProgramDNA &dna);