diff options
author | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-18 12:43:45 -0500 |
---|---|---|
committer | Louis-Francis Ratté-Boulianne <lfrb@collabora.com> | 2014-11-18 12:45:43 -0500 |
commit | 282d83a0cf5dd69de0a74d76693d4a844b9a585b (patch) | |
tree | e733236b9137d76e6815264effb7f4e001eb8c58 | |
parent | 29153ff21cd70449418105269d33b78754d53136 (diff) |
vcl: Update current context before executing scale operation
Change-Id: I332c954259bdc7e34718449023f5aa82323987cc
-rw-r--r-- | vcl/opengl/scale.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx index 741bdd1414fa..c4e32db18a0e 100644 --- a/vcl/opengl/scale.cxx +++ b/vcl/opengl/scale.cxx @@ -252,6 +252,8 @@ bool OpenGLSalBitmap::ImplScale( const double& rScaleX, const double& rScaleY, s { SAL_INFO( "vcl.opengl", "::ImplScale" ); + makeCurrent(); + if( nScaleFlag == BMP_SCALE_FAST ) { return ImplScaleFilter( rScaleX, rScaleY, GL_NEAREST ); |