summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-12-03 17:05:01 -0500
committerMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2014-12-11 07:57:29 +0100
commit6e4a34018473652e981f1b85ebfaedddc9e0aea2 (patch)
treefe80c91375737490decff3180efe3ca0995ccf5b /vcl
parent6ecff9b87e2dd1e5bf72e24003e2a038d497db51 (diff)
vcl: Reset data buffer after resizing bitmap on GPU
Change-Id: I516cdbc466f3d6427e36fea8c5cdbe718ce7d0ea
Diffstat (limited to 'vcl')
-rw-r--r--vcl/opengl/scale.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx
index 7bcf7c030cbc..4703c1f34098 100644
--- a/vcl/opengl/scale.cxx
+++ b/vcl/opengl/scale.cxx
@@ -192,6 +192,7 @@ bool OpenGLSalBitmap::ImplScale( const double& rScaleX, const double& rScaleY, s
{
SAL_INFO( "vcl.opengl", "::ImplScale" );
+ maUserBuffer.reset();
makeCurrent();
if( nScaleFlag == BMP_SCALE_FAST )
@@ -253,7 +254,6 @@ bool OpenGLSalBitmap::Scale( const double& rScaleX, const double& rScaleY, sal_u
nScaleFlag == BMP_SCALE_SUPER ||
nScaleFlag == BMP_SCALE_LANCZOS )
{
- //TODO maUserBuffer.reset();
makeCurrent();
if( mpContext == NULL )
{