mirror of
				https://git.eden-emu.dev/eden-emu/eden.git
				synced 2025-10-25 19:03:17 +00:00 
			
		
		
		
	Merge pull request #3470 from bunnei/fix-smash-srgb
renderer_opengl: Fix SRGB presentation frame tracking.
This commit is contained in:
		
						commit
						69e1a670e0
					
				
					 2 changed files with 2 additions and 5 deletions
				
			
		|  | @ -353,9 +353,9 @@ void RendererOpenGL::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) { | |||
| 
 | ||||
|         // Recreate the frame if the size of the window has changed
 | ||||
|         if (layout.width != frame->width || layout.height != frame->height || | ||||
|             is_srgb != frame->is_srgb) { | ||||
|             screen_info.display_srgb != frame->is_srgb) { | ||||
|             LOG_DEBUG(Render_OpenGL, "Reloading render frame"); | ||||
|             is_srgb = frame->is_srgb = screen_info.display_srgb; | ||||
|             frame->is_srgb = screen_info.display_srgb; | ||||
|             frame_mailbox->ReloadRenderFrame(frame, layout.width, layout.height); | ||||
|         } | ||||
|         state.draw.draw_framebuffer = frame->render.handle; | ||||
|  |  | |||
|  | @ -111,9 +111,6 @@ private: | |||
|     Tegra::FramebufferConfig::TransformFlags framebuffer_transform_flags; | ||||
|     Common::Rectangle<int> framebuffer_crop_rect; | ||||
| 
 | ||||
|     /// Represents if the final render frame is sRGB
 | ||||
|     bool is_srgb{}; | ||||
| 
 | ||||
|     /// Frame presentation mailbox
 | ||||
|     std::unique_ptr<FrameMailbox> frame_mailbox; | ||||
| }; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bunnei
						bunnei