mirror of https://github.com/buggins/dlangui.git
Fix some OpenGL context problems
This commit is contained in:
parent
c85118e2cc
commit
2915bece47
|
@ -477,7 +477,6 @@ 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))
|
||||||
{
|
{
|
||||||
|
@ -486,6 +485,7 @@ class Win32Window : Window {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
sharedGLContext.initGLBindings(hDC);
|
sharedGLContext.initGLBindings(hDC);
|
||||||
isInitialized = true;
|
isInitialized = true;
|
||||||
|
|
Loading…
Reference in New Issue