summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-05 03:32:41 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-12-07 05:41:13 +0100
commitc634ef6d9613eb1847636876f701f66070c7ccb7 (patch)
treea7a16347e5316a51a97fb25c4d2a82a78a2e2752 /vcl
parent6f55edf340ea83d02e5ba60d05df868a4a04a2c0 (diff)
simple check to prevent crash with old drivers
Change-Id: Ia5cfdcae1d762ed8ee4b182c141565f20c97ec7d
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index 56e565f4c023..c068cd89d042 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -914,6 +914,9 @@ bool OpenGLContext::ImplInit()
if (!g_vShareList.empty())
hSharedCtx = g_vShareList.front();
+ if (!wglCreateContextAttribsARB)
+ return false;
+
// now setup the shared context; this needs a temporary context already
// set up in order to work
m_aGLWin.hRC = wglCreateContextAttribsARB(m_aGLWin.hDC, hSharedCtx, NULL);