diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-02-09 17:15:29 +0000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2016-02-13 16:00:28 +0000 |
commit | ecadfaebf757838278e5351fb240b4bfc351ff08 (patch) | |
tree | fa2f5644ec84a7c9cb0a90f9bc014e66edaec01d /vcl/opengl | |
parent | 581cdd56eb180619cba569beb73aec7475add6af (diff) |
tdf#97816 - vcl: opengl - clear the user buffer after greyscale conversion.
Change-Id: Ie87fc935bf69b5eb2c620e60d041fb95b544ec96
Reviewed-on: https://gerrit.libreoffice.org/22243
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/22329
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/salbmp.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/opengl/salbmp.cxx b/vcl/opengl/salbmp.cxx index e0205f06f913..18c2ce3e2f6a 100644 --- a/vcl/opengl/salbmp.cxx +++ b/vcl/opengl/salbmp.cxx @@ -940,6 +940,10 @@ bool OpenGLSalBitmap::ConvertToGreyscale() mnBits = 8; maPalette = Bitmap::GetGreyPalette(256); + // AllocateUserData will handle the rest. + maUserBuffer.reset(); + mbDirtyTexture = false; + CHECK_GL_ERROR(); return true; } |