Kaydet (Commit) 0e682d47 authored tarafından Miklos Vajna's avatar Miklos Vajna

windows opengl: mpProgram seen as 0

in JunitTest_sc_unoapi_3.

Change-Id: Ic7e32979f31a3376b67eb3bef59373632461e39f
üst 57fc41ad
...@@ -766,6 +766,12 @@ void OpenGLSalGraphicsImpl::DrawTrapezoid( const basegfx::B2DTrapezoid& trapezoi ...@@ -766,6 +766,12 @@ void OpenGLSalGraphicsImpl::DrawTrapezoid( const basegfx::B2DTrapezoid& trapezoi
aVertices[j+1] = GLfloat(rPt.getY()); aVertices[j+1] = GLfloat(rPt.getY());
} }
if (!mpProgram)
{
SAL_WARN("vcl.opengl", "OpenGLSalGraphicsImpl::DrawTrapezoid: mpProgram is 0");
return;
}
ApplyProgramMatrices(); ApplyProgramMatrices();
mpProgram->SetVertices( &aVertices[0] ); mpProgram->SetVertices( &aVertices[0] );
glDrawArrays( GL_TRIANGLE_FAN, 0, nPoints ); glDrawArrays( GL_TRIANGLE_FAN, 0, nPoints );
......
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