mirror of https://github.com/buggins/dlangui.git
Fix some OpenGL context problems
This commit is contained in:
parent
c85118e2cc
commit
2915bece47
|
@ -477,12 +477,12 @@ class Win32Window : Window {
|
||||||
|
|
||||||
hDC = GetDC(_hwnd);
|
hDC = GetDC(_hwnd);
|
||||||
useOpengl = sharedGLContext.reinit(hDC, platform.multisamples);
|
useOpengl = sharedGLContext.reinit(hDC, platform.multisamples);
|
||||||
}
|
|
||||||
|
|
||||||
if(!sharedGLContext.createCoreRC(hDC))
|
if(!sharedGLContext.createCoreRC(hDC))
|
||||||
{
|
{
|
||||||
Log.d("Unable to create Core OpenGL");
|
Log.d("Unable to create Core OpenGL");
|
||||||
throw new Exception("Unable to create Core OpenGL");
|
throw new Exception("Unable to create Core OpenGL");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue