summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-18 11:19:02 -0500
committerLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-18 11:19:17 -0500
commit9b18be272124c0157eea1b24d396e03b2135fffd (patch)
tree391f89f09ace5329ec5d2a9e6ce48666ed4a826b
parent0867564863457b3bb45af040e8ffa05b780a74e4 (diff)
vcl: Actually keep the new offscreen texture around
Change-Id: Ie44c680f0c217214c4a3642d34fa704e8eeca917
-rw-r--r--vcl/opengl/gdiimpl.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index bfa4b1ff4943..8bd1b35e8875 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -316,6 +316,7 @@ bool OpenGLSalGraphicsImpl::CheckOffscreenTexture()
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, aNewTex.Id(), 0 );
glViewport( 0, 0, GetWidth(), GetHeight() );
DrawTexture( maOffscreenTex, aPosAry );
+ maOffscreenTex = aNewTex;
CHECK_GL_ERROR();
return true;