mirror of
				https://git.eden-emu.dev/eden-emu/eden.git
				synced 2025-10-26 05:33:16 +00:00 
			
		
		
		
	Merge pull request #3277 from ReinUsesLisp/make-current
yuzu/bootmanager: Remove {glx,wgl}MakeCurrent on SwapBuffers
			
			
This commit is contained in:
		
						commit
						890b59bdff
					
				
					 1 changed files with 2 additions and 9 deletions
				
			
		|  | @ -215,18 +215,11 @@ void GRenderWindow::moveContext() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void GRenderWindow::SwapBuffers() { | void GRenderWindow::SwapBuffers() { | ||||||
|     // In our multi-threaded QWidget use case we shouldn't need to call `makeCurrent`,
 |  | ||||||
|     // since we never call `doneCurrent` in this thread.
 |  | ||||||
|     // However:
 |  | ||||||
|     // - The Qt debug runtime prints a bogus warning on the console if `makeCurrent` wasn't called
 |  | ||||||
|     // since the last time `swapBuffers` was executed;
 |  | ||||||
|     // - On macOS, if `makeCurrent` isn't called explicitly, resizing the buffer breaks.
 |  | ||||||
|     context->makeCurrent(child); |  | ||||||
| 
 |  | ||||||
|     context->swapBuffers(child); |     context->swapBuffers(child); | ||||||
|  | 
 | ||||||
|     if (!first_frame) { |     if (!first_frame) { | ||||||
|         emit FirstFrameDisplayed(); |  | ||||||
|         first_frame = true; |         first_frame = true; | ||||||
|  |         emit FirstFrameDisplayed(); | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bunnei
						bunnei