diff options
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index da2ace3fce62..7d930d27bf23 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -187,6 +187,10 @@ void OpenGLSalGraphicsImpl::PostDraw() mProgramIsSolidColor = false; #endif } + if (mbOffscreen) + { + ReleaseContext(); + } CHECK_GL_ERROR(); } |