SDLPlatform now enables OpenGL context sharing (important for multi-window)

This commit is contained in:
Donny Viszneki 2014-08-13 16:29:32 -07:00
parent dbe7671cf2
commit 78a5e49d07
1 changed files with 2 additions and 0 deletions

View File

@ -1054,6 +1054,8 @@ version(USE_SDL) {
// Set OpenGL attributes
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
// Share textures between contexts
SDL_GL_SetAttribute(SDL_GL_SHARE_WITH_CURRENT_CONTEXT, 1);
}
SDLPlatform sdl = new SDLPlatform();