Fix linux build

This commit is contained in:
Grim Maple 2022-04-16 13:49:25 +03:00
parent d19ff3c042
commit 68eba11e46
1 changed files with 1 additions and 15 deletions

View File

@ -42,9 +42,7 @@ import dlangui.platforms.common.platform;
import derelict.sdl2.sdl;
static if (ENABLE_OPENGL) {
//import derelict.opengl3.gl3;
import derelict.opengl;
import derelict.util.exception;
import bindbc.opengl;
import dlangui.graphics.gldrawbuf;
import dlangui.graphics.glsupport;
}
@ -1648,18 +1646,6 @@ int sdlmain(string[] args) {
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;
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());