summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-18 11:19:02 -0500
committerJan Holesovsky <kendy@collabora.com>2014-11-22 20:14:16 +0100
commit121b8487f13b4ac3e3a9517a02000c9fe55afd68 (patch)
tree86fdb0182f9fd0ab6b147037bd275a0122d5f905
parentInvert Native Widget rendering in Y. (diff)
downloadcore-121b8487f13b4ac3e3a9517a02000c9fe55afd68.tar.gz
core-121b8487f13b4ac3e3a9517a02000c9fe55afd68.zip
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 1abc86e11098..c34d085b2537 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;