diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-02-09 17:15:29 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-02-12 20:19:56 +0000 |
commit | baf7dd2db7f61b90c0d63db4326034d76bfe2300 (patch) | |
tree | 9cf7ff2aa6239e547199402e8f6cb75bf911b7e2 | |
parent | 8d2968fa91cde3b3a4e6cd5f49f9f4062c88a11a (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/22330
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
-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; } |