[Libreoffice-commits] core.git: vcl/source

Michael Meeks michael.meeks at collabora.com
Thu Aug 27 17:19:20 PDT 2015


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

New commits:
commit 098f9189c603fe8b345d2e64f5579fd7f3e0ca05
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>

diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 6cc7aed..ff152d9 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -793,6 +793,9 @@ bool OpenGLContext::ImplInit()
 
     bool bRet = InitGLEW();
     InitGLEWDebugging();
+
+    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
+
     return bRet;
 }
 
@@ -932,6 +935,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