From 5fb4f2c63d32c8bf6177f93d1ef6ba7f4202640b Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Wed, 30 Nov 2011 17:50:41 +0100 Subject: [PATCH] Request ALL the bits --- src/modules/graphics/opengl/Graphics.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index bd535d3c1..9ffdadaf7 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/src/modules/graphics/opengl/Graphics.cpp @@ -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);