diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-09-02 22:14:10 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-09-18 10:10:08 +0200 |
commit | 87318fa0ab83be1e237314637670fbcc5f25c90d (patch) | |
tree | 32735b3cb14b09548c24aa95bc00a9c251f3c552 /include/vcl | |
parent | 8d7cb9779e12a5e82c77a2af277daa48291dcb02 (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
Reviewed-on: https://gerrit.libreoffice.org/18282
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index 5aa318eff69c..259222a4d1d0 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -212,7 +212,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 |