vcl/source/opengl/OpenGLContext.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 098f9189c603fe8b345d2e64f5579fd7f3e0ca05 Author: Michael Meeks <michael.me...@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.mohrh...@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrh...@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; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits