Make sure can set our GL context as the current on Window creation
This commit is contained in:
@@ -212,7 +212,7 @@ namespace lime {
|
|||||||
|
|
||||||
context = SDL_GL_CreateContext (sdlWindow);
|
context = SDL_GL_CreateContext (sdlWindow);
|
||||||
|
|
||||||
if (context) {
|
if (context && SDL_GL_MakeCurrent (sdlWindow, context)) {
|
||||||
|
|
||||||
if (flags & WINDOW_FLAG_VSYNC) {
|
if (flags & WINDOW_FLAG_VSYNC) {
|
||||||
|
|
||||||
@@ -257,6 +257,11 @@ namespace lime {
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
SDL_GL_DeleteContext (context);
|
||||||
|
context = NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user