Switch color space to 24-bit
This commit is contained in:
		
							parent
							
								
									47b499d85b
								
							
						
					
					
						commit
						559b026b19
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -273,6 +273,14 @@ int main(int argc, char *argv[])
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	SDL_Window *win;
 | 
			
		||||
	
 | 
			
		||||
	/* Set the color space to 24 bit */
 | 
			
		||||
	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, 0);
 | 
			
		||||
	SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
 | 
			
		||||
	
 | 
			
		||||
	Uint32 winFlags = SDL_WINDOW_OPENGL | SDL_WINDOW_INPUT_FOCUS;
 | 
			
		||||
 | 
			
		||||
	if (conf.winResizable)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue