Kaydet (Commit) c634ef6d authored tarafından Markus Mohrhard's avatar Markus Mohrhard

simple check to prevent crash with old drivers

Change-Id: Ia5cfdcae1d762ed8ee4b182c141565f20c97ec7d
üst 6f55edf3
...@@ -914,6 +914,9 @@ bool OpenGLContext::ImplInit() ...@@ -914,6 +914,9 @@ bool OpenGLContext::ImplInit()
if (!g_vShareList.empty()) if (!g_vShareList.empty())
hSharedCtx = g_vShareList.front(); hSharedCtx = g_vShareList.front();
if (!wglCreateContextAttribsARB)
return false;
// now setup the shared context; this needs a temporary context already // now setup the shared context; this needs a temporary context already
// set up in order to work // set up in order to work
m_aGLWin.hRC = wglCreateContextAttribsARB(m_aGLWin.hDC, hSharedCtx, NULL); m_aGLWin.hRC = wglCreateContextAttribsARB(m_aGLWin.hDC, hSharedCtx, NULL);
......
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