summaryrefslogtreecommitdiff
path: root/vcl/source/opengl
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-09-10 11:39:44 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-10 13:51:49 +0200
commit57fc41adc9292f8980bb8bbbb0d7983310fe6fe3 (patch)
tree384ccc69bac3a7ae60e90e5b2f54142cab6a61d0 /vcl/source/opengl
parent3d95279f6c1e42986a64e76ffc95a432004d4d88 (diff)
windows opengl: mpCurrentProgram seen as 0
in JunitTest_sc_unoapi_3. Change-Id: Ibe12a31c1158f782bd7df115171b07e1843d025c
Diffstat (limited to 'vcl/source/opengl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index f65341a4cbfd..6fd18c8a4f3a 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -1654,6 +1654,13 @@ OpenGLProgram* OpenGLContext::UseProgram( const OUString& rVertexShader, const O
return pProgram;
mpCurrentProgram = pProgram;
+
+ if (!mpCurrentProgram)
+ {
+ SAL_WARN("vcl.opengl", "OpenGLContext::UseProgram: mpCurrentProgram is 0");
+ return 0;
+ }
+
mpCurrentProgram->Use();
return mpCurrentProgram;