mirror of https://github.com/buggins/dlangui.git
Fix #628 OpenGL in SDL isn't initialized properly
This commit is contained in:
parent
a5def713ec
commit
dc3c083a42
|
@ -1159,7 +1159,12 @@ private extern(C) uint myTimerCallbackFunc(uint interval, void *param) nothrow {
|
||||||
private __gshared bool _enableOpengl;
|
private __gshared bool _enableOpengl;
|
||||||
|
|
||||||
class SDLPlatform : Platform {
|
class SDLPlatform : Platform {
|
||||||
this() {
|
this()
|
||||||
|
{
|
||||||
|
static if(ENABLE_OPENGL)
|
||||||
|
_enableOpengl = true;
|
||||||
|
else
|
||||||
|
_enableOpengl = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private SDLWindow[uint] _windowMap;
|
private SDLWindow[uint] _windowMap;
|
||||||
|
|
Loading…
Reference in New Issue