Init: glClear the window as early as possible
This commit is contained in:
		
							parent
							
								
									caccee5db2
								
							
						
					
					
						commit
						2a83cfc1e1
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -83,6 +83,10 @@ int rgssThreadFun(void *userdata)
 | 
			
		|||
		return 0;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	glClearColor(0, 0, 0, 1);
 | 
			
		||||
	glClear(GL_COLOR_BUFFER_BIT);
 | 
			
		||||
	SDL_GL_SwapWindow(win);
 | 
			
		||||
 | 
			
		||||
	/* Check for required GL extensions */
 | 
			
		||||
	for (int i = 0; reqExt[i]; ++i)
 | 
			
		||||
	{
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue