Make sure can set our GL context as the current on Window creation

This commit is contained in:
Joshua Granick
2018-11-29 12:37:08 -08:00
parent 68de78a9b9
commit 18502d49c0

View File

@@ -212,7 +212,7 @@ namespace lime {
context = SDL_GL_CreateContext (sdlWindow);
if (context) {
if (context && SDL_GL_MakeCurrent (sdlWindow, context)) {
if (flags & WINDOW_FLAG_VSYNC) {
@@ -257,6 +257,11 @@ namespace lime {
#endif
} else {
SDL_GL_DeleteContext (context);
context = NULL;
}
}