diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-12-04 22:17:58 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-15 22:47:06 +0100 |
commit | 3c4efc16be52465526c078190f0a46d552b5db4c (patch) | |
tree | 6640b04ea0c402bc265439e0b96f03f54fa3f549 /include | |
parent | 0b1ee021458f59698dae1bc42f74cb78195040c9 (diff) |
vcl: Reset context when the backend window is destroyed
Conflicts:
vcl/source/opengl/OpenGLContext.cxx
Conflicts:
vcl/source/opengl/OpenGLContext.cxx
Change-Id: Ie2b93de8efe5ea56b0420adf23639c0153103385
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/opengl/OpenGLContext.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/vcl/opengl/OpenGLContext.hxx b/include/vcl/opengl/OpenGLContext.hxx index a78972cf6a5f..21f45d207d6f 100644 --- a/include/vcl/opengl/OpenGLContext.hxx +++ b/include/vcl/opengl/OpenGLContext.hxx @@ -204,6 +204,7 @@ public: #elif defined( _WIN32 ) bool init( HDC hDC, HWND hWnd ); #endif + void reset(); // use these methods right after setting a context to make sure drawing happens // in the right FBO (default one is for onscreen painting) @@ -218,6 +219,7 @@ public: OpenGLProgram* GetProgram( const OUString& rVertexShader, const OUString& rFragmentShader ); OpenGLProgram* UseProgram( const OUString& rVertexShader, const OUString& rFragmentShader ); + bool isCurrent(); void makeCurrent(); void resetCurrent(); void swapBuffers(); |