diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-05 03:32:41 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-12-07 05:41:13 +0100 |
commit | c634ef6d9613eb1847636876f701f66070c7ccb7 (patch) | |
tree | a7a16347e5316a51a97fb25c4d2a82a78a2e2752 /vcl | |
parent | 6f55edf340ea83d02e5ba60d05df868a4a04a2c0 (diff) |
simple check to prevent crash with old drivers
Change-Id: Ia5cfdcae1d762ed8ee4b182c141565f20c97ec7d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/opengl/OpenGLContext.cxx | 3 |
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); |