mirror of https://github.com/buggins/dlangui.git
SDLPlatform now enables OpenGL context sharing (important for multi-window)
This commit is contained in:
parent
dbe7671cf2
commit
78a5e49d07
|
@ -1054,6 +1054,8 @@ version(USE_SDL) {
|
||||||
// Set OpenGL attributes
|
// Set OpenGL attributes
|
||||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
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();
|
SDLPlatform sdl = new SDLPlatform();
|
||||||
|
|
Loading…
Reference in New Issue