[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - vcl/source

Michael Meeks michael.meeks at collabora.com
Tue Sep 1 00:24:55 PDT 2015


 vcl/source/opengl/OpenGLContext.cxx |    5 +++++
 1 file changed, 5 insertions(+)

New commits:
commit bcef0483cfbff181ca940fe219226d11cbb0e6a4
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Thu Aug 27 20:39:19 2015 +0100

    tdf#93530 - glClear our depth, stencil and buffer contents on init.
    
    Change-Id: I117fd5f5fd12fd6534b9d10532a39807ad82ce71
    Reviewed-on: https://gerrit.libreoffice.org/18069
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Reviewed-on: https://gerrit.libreoffice.org/18220
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 388a1a0..20b510f 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -871,6 +871,9 @@ bool OpenGLContext::ImplInit()
 
     bool bRet = InitGLEW();
     InitGLEWDebugging();
+
+    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
+
     return bRet;
 }
 
@@ -1013,6 +1016,8 @@ bool OpenGLContext::ImplInit()
     m_aGLWin.Width = clientRect.right - clientRect.left;
     m_aGLWin.Height = clientRect.bottom - clientRect.top;
 
+    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
+
     return true;
 }
 


More information about the Libreoffice-commits mailing list