summaryrefslogtreecommitdiff
path: root/include/vcl/opengl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-09-02 22:14:10 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-09-02 22:46:48 +0100
commit16b0e217c1f67948374ff050496e5d4ffb8ceb90 (patch)
tree4ac841f030ae1868ff544ae6e5320d6d847f3a5b /include/vcl/opengl
parent75eb5a5cae3276fff4eee17af24916bdf5e7381b (diff)
tdf#93867 - clear current GL context before thread switch.
Fixes regression from otherwise a nice cleanup in: d20092259c7ea63885a539f911788715f8147ee9 Also get polarity of debug logging only with a context right. Change-Id: Id322471f01e5656e758aefc57b0d4d5ad073ec54
Diffstat (limited to 'include/vcl/opengl')
-rw-r--r--include/vcl/opengl/OpenGLContext.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx
index cf8bd6d0272a..c588a215aa86 100644
--- a/include/vcl/opengl/OpenGLContext.hxx
+++ b/include/vcl/opengl/OpenGLContext.hxx
@@ -210,7 +210,10 @@ public:
/// Is this GL context the current context ?
bool isCurrent();
+ /// release bound resources from the current context
static void clearCurrent();
+ /// release contexts etc. before (potentially) allowing another thread run.
+ static void prepareForYield();
/// Is there a current GL context ?
static bool hasCurrent();
/// make this GL context current - so it is implicit in subsequent GL calls