mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
Request ALL the bits
This commit is contained in:
@@ -165,9 +165,10 @@ namespace opengl
|
||||
// Set caption.
|
||||
|
||||
// Set GL attributes
|
||||
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 0);
|
||||
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 0);
|
||||
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 0);
|
||||
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
|
||||
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
|
||||
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, (vsync ? 1 : 0));
|
||||
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
|
||||
|
||||
Reference in New Issue
Block a user