mirror of https://github.com/buggins/dlangui.git
sdl legacy opengl api
This commit is contained in:
parent
51c98147f8
commit
8ce8c38b24
|
@ -41,6 +41,7 @@ import dlangui.platforms.common.platform;
|
||||||
|
|
||||||
import derelict.sdl2.sdl;
|
import derelict.sdl2.sdl;
|
||||||
import derelict.opengl3.gl3;
|
import derelict.opengl3.gl3;
|
||||||
|
import derelict.opengl3.gl;
|
||||||
|
|
||||||
static if (ENABLE_OPENGL) {
|
static if (ENABLE_OPENGL) {
|
||||||
import dlangui.graphics.gldrawbuf;
|
import dlangui.graphics.gldrawbuf;
|
||||||
|
@ -1321,6 +1322,8 @@ int sdlmain(string[] args) {
|
||||||
try {
|
try {
|
||||||
DerelictGL3.missingSymbolCallback = &gl3MissingSymFunc;
|
DerelictGL3.missingSymbolCallback = &gl3MissingSymFunc;
|
||||||
DerelictGL3.load();
|
DerelictGL3.load();
|
||||||
|
DerelictGL.missingSymbolCallback = &gl3MissingSymFunc;
|
||||||
|
DerelictGL.load();
|
||||||
_enableOpengl = true;
|
_enableOpengl = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e("Cannot load opengl library", e);
|
Log.e("Cannot load opengl library", e);
|
||||||
|
|
Loading…
Reference in New Issue