Kaydet (Commit) 33d7f381 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

makeSomeOpenGLContextCurrent() asserts that mpContext is not null

So no need to test after calling it.

Change-Id: I122bd5c2de23568b1cd3e98aef3c61d2ca91dfe9
üst 04ebc52c
...@@ -351,15 +351,7 @@ bool OpenGLSalBitmap::Scale( const double& rScaleX, const double& rScaleY, BmpSc ...@@ -351,15 +351,7 @@ bool OpenGLSalBitmap::Scale( const double& rScaleX, const double& rScaleY, BmpSc
nScaleFlag == BmpScaleFlag::BestQuality ) nScaleFlag == BmpScaleFlag::BestQuality )
{ {
makeSomeOpenGLContextCurrent(); makeSomeOpenGLContextCurrent();
if( mpContext == nullptr ) ImplScale( rScaleX, rScaleY, nScaleFlag );
{
VCL_GL_INFO( "Add ScaleOp to pending operations" );
maPendingOps.push_back( new ScaleOp( this, rScaleX, rScaleY, nScaleFlag ) );
}
else
{
ImplScale( rScaleX, rScaleY, nScaleFlag );
}
return true; return true;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment