Browse Source

Forced 8 bit RGB for windows GL in mojo.

Mark Sibly 9 years ago
parent
commit
3ac352fa78
1 changed files with 4 additions and 1 deletions
  1. 4 1
      modules/mojo/app/app.monkey2

+ 4 - 1
modules/mojo/app/app.monkey2

@@ -144,7 +144,10 @@ Class AppInstance
 		SDL_GL_SetAttribute( SDL_GL_CONTEXT_PROFILE_MASK,gl_profile )
 		SDL_GL_SetAttribute( SDL_GL_CONTEXT_MAJOR_VERSION,gl_major )
 		SDL_GL_SetAttribute( SDL_GL_CONTEXT_MINOR_VERSION,gl_minor )
-
+		
+		SDL_GL_SetAttribute(SDL_GL_RED_SIZE,8 )
+		SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE,8 )
+		SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE,8 )
 #Endif
 
 		SDL_GL_SetAttribute( SDL_GL_SHARE_WITH_CURRENT_CONTEXT,1 )