summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-09-10 11:40:33 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-10 13:51:50 +0200
commit0e682d47a792497211d33779312ca2cad9874ffb (patch)
tree108c7f8981f40d40a6db3a1cfef030d0275ff88b /vcl
parent57fc41adc9292f8980bb8bbbb0d7983310fe6fe3 (diff)
windows opengl: mpProgram seen as 0
in JunitTest_sc_unoapi_3. Change-Id: Ic7e32979f31a3376b67eb3bef59373632461e39f
Diffstat (limited to 'vcl')
-rw-r--r--vcl/opengl/gdiimpl.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx
index 2b1101020203..6580f43f556a 100644
--- a/vcl/opengl/gdiimpl.cxx
+++ b/vcl/opengl/gdiimpl.cxx
@@ -766,6 +766,12 @@ void OpenGLSalGraphicsImpl::DrawTrapezoid( const basegfx::B2DTrapezoid& trapezoi
aVertices[j+1] = GLfloat(rPt.getY());
}
+ if (!mpProgram)
+ {
+ SAL_WARN("vcl.opengl", "OpenGLSalGraphicsImpl::DrawTrapezoid: mpProgram is 0");
+ return;
+ }
+
ApplyProgramMatrices();
mpProgram->SetVertices( &aVertices[0] );
glDrawArrays( GL_TRIANGLE_FAN, 0, nPoints );