diff options
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx index 4d3549509a57..e5a63c0a0aaa 100644 --- a/vcl/source/opengl/OpenGLContext.cxx +++ b/vcl/source/opengl/OpenGLContext.cxx @@ -816,7 +816,7 @@ OpenGLProgram* OpenGLContext::UseProgram( const OUString& rVertexShader, const O OpenGLProgram* pProgram = GetProgram( rVertexShader, rFragmentShader, preamble ); - if (pProgram == mpCurrentProgram) + if (pProgram && pProgram == mpCurrentProgram) { VCL_GL_INFO("Context::UseProgram: Reusing existing program " << pProgram->Id()); pProgram->Reuse(); |