diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-08-27 20:39:19 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-08-27 20:39:19 +0100 |
commit | 3de7afa8129a60b706ae72a0975ff714c6d6124b (patch) | |
tree | 8dfa0a2a91c8f0fb656c5440d2f8eefba85685f6 | |
parent | 1e33ee6d7ffb5086ed7308a779192b5de6614cbb (diff) |
tdf#93530 - glClear our depth, stencil and buffer contents on init.
Change-Id: I117fd5f5fd12fd6534b9d10532a39807ad82ce71
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 6cc7aed60587..ff152d99f75c 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; } |