Work around Steam overlay screenshot bug
This commit is contained in:
		
							parent
							
								
									9506c05ba6
								
							
						
					
					
						commit
						7121b65b44
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -508,6 +508,12 @@ struct GraphicsPrivate
 | 
			
		|||
	void swapGLBuffer()
 | 
			
		||||
	{
 | 
			
		||||
		fpsLimiter.delay();
 | 
			
		||||
 | 
			
		||||
		// Steam overlay renderer blindly assumes that the default
 | 
			
		||||
		// framebuffer is bound at swap time when it ReadPixels's to
 | 
			
		||||
		// aquire screenshots.
 | 
			
		||||
		FBO::unbind();
 | 
			
		||||
 | 
			
		||||
		SDL_GL_SwapWindow(threadData->window);
 | 
			
		||||
 | 
			
		||||
		++frameCount;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue