fix screen grab crash when in fullscreen
- read the FBO size NOT the screen size.
This commit is contained in:
		
							parent
							
								
									3daf805350
								
							
						
					
					
						commit
						cf38a9a334
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -521,7 +521,7 @@ struct GraphicsPrivate
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		screen.getPP().bindLastBuffer();
 | 
							screen.getPP().bindLastBuffer();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		glReadPixels(0, 0, scSize.x, scSize.y, GL_RGBA, GL_UNSIGNED_BYTE, screenshot->pixels);
 | 
							glReadPixels(0, 0, scRes.x, scRes.y, GL_RGBA, GL_UNSIGNED_BYTE, screenshot->pixels);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		IMG_SavePNG(screenshot, filename);
 | 
							IMG_SavePNG(screenshot, filename);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue