Browse Source

Request ALL the bits

Bart van Strien 13 years ago
parent
commit
5fb4f2c63d
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/modules/graphics/opengl/Graphics.cpp

+ 4 - 3
src/modules/graphics/opengl/Graphics.cpp

@@ -165,9 +165,10 @@ namespace opengl
 		// Set caption.
 		// Set caption.
 
 
 		// Set GL attributes
 		// 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_DOUBLEBUFFER, 1);
 		SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, (vsync ? 1 : 0));
 		SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, (vsync ? 1 : 0));
 		SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);
 		SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1);