mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #2834 from wwylele/depth-enable-fix
gl_rasterizer_cache: fix using_depth_fb
This commit is contained in:
		
						commit
						e646bd902d
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		|  | @ -542,10 +542,11 @@ RasterizerCacheOpenGL::GetFramebufferSurfaces( | |||
|             config.GetDepthBufferPhysicalAddress(), | ||||
|             fb_area * Pica::FramebufferRegs::BytesPerDepthPixel(config.depth_format)); | ||||
|     bool using_color_fb = config.GetColorBufferPhysicalAddress() != 0; | ||||
|     bool using_depth_fb = | ||||
|         config.GetDepthBufferPhysicalAddress() != 0 && | ||||
|         (regs.framebuffer.output_merger.depth_test_enable || | ||||
|          regs.framebuffer.output_merger.depth_write_enable || !framebuffers_overlap); | ||||
|     bool depth_write_enable = regs.framebuffer.output_merger.depth_write_enable && | ||||
|                               regs.framebuffer.framebuffer.allow_depth_stencil_write; | ||||
|     bool using_depth_fb = config.GetDepthBufferPhysicalAddress() != 0 && | ||||
|                           (regs.framebuffer.output_merger.depth_test_enable || depth_write_enable || | ||||
|                            !framebuffers_overlap); | ||||
| 
 | ||||
|     if (framebuffers_overlap && using_color_fb && using_depth_fb) { | ||||
|         LOG_CRITICAL(Render_OpenGL, "Color and depth framebuffer memory regions overlap; " | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue