diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-12-03 17:05:01 -0500 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-15 19:53:49 +0100 |
commit | 340d706c8bd78cef165edcb38b73c045204201ea (patch) | |
tree | 1632e75458cd2014fb4324edc54e7f76c22013d2 | |
parent | 74f71a70ea2f0bf71b4110bde500515314a17ab0 (diff) |
vcl: Reset data buffer after resizing bitmap on GPU
Change-Id: I516cdbc466f3d6427e36fea8c5cdbe718ce7d0ea
-rw-r--r-- | vcl/opengl/scale.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx index 571be984caef..01a9963d9e7d 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 ) { |