Kaydet (Commit) 121b8487 authored tarafından Louis-Francis Ratté-Boulianne's avatar Louis-Francis Ratté-Boulianne Kaydeden (comit) Jan Holesovsky

vcl: Actually keep the new offscreen texture around

Change-Id: Ie44c680f0c217214c4a3642d34fa704e8eeca917
üst 3181a7a1
...@@ -316,6 +316,7 @@ bool OpenGLSalGraphicsImpl::CheckOffscreenTexture() ...@@ -316,6 +316,7 @@ bool OpenGLSalGraphicsImpl::CheckOffscreenTexture()
glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, aNewTex.Id(), 0 ); glFramebufferTexture2D( GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, aNewTex.Id(), 0 );
glViewport( 0, 0, GetWidth(), GetHeight() ); glViewport( 0, 0, GetWidth(), GetHeight() );
DrawTexture( maOffscreenTex, aPosAry ); DrawTexture( maOffscreenTex, aPosAry );
maOffscreenTex = aNewTex;
CHECK_GL_ERROR(); CHECK_GL_ERROR();
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment