diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-12-04 22:17:58 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@collabora.co.uk> | 2014-12-11 07:57:31 +0100 |
commit | 2e512773095216acbac83e6fd71f6d0444263d70 (patch) | |
tree | bf17b3e97d8ee2448869b6bfa7ffce63f1397b72 /include/vcl/opengl | |
parent | f0f5f50243810762e27f1207b3c08b60ed888ee3 (diff) |
vcl: Reset context when the backend window is destroyed
Conflicts:
vcl/source/opengl/OpenGLContext.cxx
Change-Id: Ie2b93de8efe5ea56b0420adf23639c0153103385
Diffstat (limited to 'include/vcl/opengl')
-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(); |