mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	gl_rasterizer: Fix incorrect comparison against src_surface in AccelerateTextureCopy()
This should actually be comparing the validity of the destination surface.
This commit is contained in:
		
							parent
							
								
									74465389f3
								
							
						
					
					
						commit
						27a3d44b16
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1093,7 +1093,7 @@ bool RasterizerOpenGL::AccelerateTextureCopy(const GPU::Regs::DisplayTransferCon | ||||||
|     Surface dst_surface; |     Surface dst_surface; | ||||||
|     std::tie(dst_surface, dst_rect) = |     std::tie(dst_surface, dst_rect) = | ||||||
|         res_cache.GetSurfaceSubRect(dst_params, ScaleMatch::Upscale, load_gap); |         res_cache.GetSurfaceSubRect(dst_params, ScaleMatch::Upscale, load_gap); | ||||||
|     if (src_surface == nullptr) { |     if (dst_surface == nullptr) { | ||||||
|         return false; |         return false; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue