mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	gl_rasterizer_cache: don't place null textures in the recycler
This commit is contained in:
		
							parent
							
								
									85e9ba897d
								
							
						
					
					
						commit
						a131f9eb74
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -495,7 +495,9 @@ static bool FillSurface(const Surface& surface, const u8* fill_data, | |||
| } | ||||
| 
 | ||||
| CachedSurface::~CachedSurface() { | ||||
|     owner.host_texture_recycler.emplace(*this, std::move(texture)); | ||||
|     if (texture.handle) { | ||||
|         owner.host_texture_recycler.emplace(*this, std::move(texture)); | ||||
|     } | ||||
| } | ||||
| 
 | ||||
| bool CachedSurface::CanFill(const SurfaceParams& dest_surface, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue