summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>2014-11-18 12:43:45 -0500
committerJan Holesovsky <kendy@collabora.com>2014-11-22 20:14:17 +0100
commit878aaddebf6018156f5a376b516e935b5069a5c9 (patch)
treec21276d1643b7b3e0c9f9a90a6b75a436ec6f2a1 /vcl
parent4b6feefa51405e1313de62e1a19c4c213e79c22f (diff)
vcl: Update current context before executing scale operation
Change-Id: I332c954259bdc7e34718449023f5aa82323987cc
Diffstat (limited to 'vcl')
-rw-r--r--vcl/opengl/scale.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx
index c9c19e459c9f..9c52cc271f48 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 );