mirror of https://github.com/buggins/dlangui.git
Fix linux build
This commit is contained in:
parent
d19ff3c042
commit
68eba11e46
|
@ -42,9 +42,7 @@ import dlangui.platforms.common.platform;
|
||||||
import derelict.sdl2.sdl;
|
import derelict.sdl2.sdl;
|
||||||
|
|
||||||
static if (ENABLE_OPENGL) {
|
static if (ENABLE_OPENGL) {
|
||||||
//import derelict.opengl3.gl3;
|
import bindbc.opengl;
|
||||||
import derelict.opengl;
|
|
||||||
import derelict.util.exception;
|
|
||||||
import dlangui.graphics.gldrawbuf;
|
import dlangui.graphics.gldrawbuf;
|
||||||
import dlangui.graphics.glsupport;
|
import dlangui.graphics.glsupport;
|
||||||
}
|
}
|
||||||
|
@ -1648,18 +1646,6 @@ int sdlmain(string[] args) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static if (ENABLE_OPENGL) {
|
|
||||||
try {
|
|
||||||
DerelictGL3.missingSymbolCallback = &gl3MissingSymFunc;
|
|
||||||
DerelictGL3.load();
|
|
||||||
//DerelictGL3.missingSymbolCallback = &gl3MissingSymFunc;
|
|
||||||
//DerelictGL3.load();
|
|
||||||
_enableOpengl = true;
|
|
||||||
} catch (Exception e) {
|
|
||||||
Log.e("Cannot load opengl library", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
SDL_DisplayMode displayMode;
|
SDL_DisplayMode displayMode;
|
||||||
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_EVENTS|SDL_INIT_NOPARACHUTE) != 0) {
|
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_EVENTS|SDL_INIT_NOPARACHUTE) != 0) {
|
||||||
Log.e("Cannot init SDL2: ", SDL_GetError().to!string());
|
Log.e("Cannot init SDL2: ", SDL_GetError().to!string());
|
||||||
|
|
Loading…
Reference in New Issue