EGL update for SDL_ANGLE

This commit is contained in:
Joshua Granick
2018-02-08 10:37:19 -08:00
parent d07ebc4632
commit a2be08199b
2 changed files with 17 additions and 0 deletions

View File

@@ -2730,6 +2730,19 @@ namespace lime {
#endif #endif
#ifdef NATIVE_TOOLKIT_SDL_ANGLE
OpenGLBindings::eglHandle = LoadLibrary (L"libegl.dll");
if (!OpenGLBindings::handle) {
result = false;
return result;
}
#endif
#ifdef NEED_EXTENSIONS #ifdef NEED_EXTENSIONS
#define GET_EXTENSION #define GET_EXTENSION
#include "OpenGLExtensions.h" #include "OpenGLExtensions.h"

View File

@@ -15,6 +15,10 @@ namespace lime {
static int defaultRenderbuffer; static int defaultRenderbuffer;
static void* handle; static void* handle;
#ifdef NATIVE_TOOLKIT_SDL_ANGLE
static void* eglHandle;
#endif
private: private: