Kaydet (Commit) 84a367ca authored tarafından Miklos Vajna's avatar Miklos Vajna Kaydeden (comit) Andras Timar

windows opengl: mpProgram seen as 0

in JunitTest_sc_unoapi_3.

Change-Id: Ic7e32979f31a3376b67eb3bef59373632461e39f
(cherry picked from commit 0e682d47)
Reviewed-on: https://gerrit.libreoffice.org/18490Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 7ed4ee9e
......@@ -773,6 +773,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 );
......
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