[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/opengl

Marco Cecchetti marco.cecchetti at collabora.com
Mon Mar 14 12:37:57 UTC 2016


 vcl/opengl/gdiimpl.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit e19212b0854d963d33354095ffa62e34ac56d315
Author: Marco Cecchetti <marco.cecchetti at collabora.com>
Date:   Fri Mar 11 18:04:40 2016 +0100

    tdf#95616 - fix flickering issue
    
    Reviewed-on: https://gerrit.libreoffice.org/23238
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Signed-off-by: Michael Meeks <michael.meeks at collabora.com>
    
    Conflicts:
    	vcl/opengl/gdiimpl.cxx
    
    Change-Id: I0d5bfdf44dde2cd06c193f34e81c6ce71291bba1

diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index 15cec83..59545f8e 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -451,9 +451,10 @@ bool OpenGLSalGraphicsImpl::CheckOffscreenTexture()
         if( maOffscreenTex.GetWidth()  != GetWidth() ||
             maOffscreenTex.GetHeight() != GetHeight() )
         {
+            VCL_GL_INFO( "re-size offscreen texture " << maOffscreenTex.Id() );
+            mpFlush->SetPriority( SchedulerPriority::POST_PAINT );
             mpContext->ReleaseFramebuffer( maOffscreenTex );
             maOffscreenTex = OpenGLTexture();
-            VCL_GL_INFO( "re-size offscreen texture" );
         }
     }
 


More information about the Libreoffice-commits mailing list