Always request OpenGL Core profile
This commit is contained in:
		
							parent
							
								
									6fef49f42a
								
							
						
					
					
						commit
						34d4103111
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -58,6 +58,7 @@ int rgssThreadFun(void *userdata)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Setup GL context */
 | 
						/* Setup GL context */
 | 
				
			||||||
	SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
 | 
						SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
 | 
				
			||||||
 | 
						SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (threadData->config.debugMode)
 | 
						if (threadData->config.debugMode)
 | 
				
			||||||
		SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);
 | 
							SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue