mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	gl_rasterizer: Bind null surface when unit is disabled (#6967)
This commit is contained in:
		
							parent
							
								
									bbb47cd753
								
							
						
					
					
						commit
						9be4fd8b91
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -484,7 +484,8 @@ void RasterizerOpenGL::SyncTextureUnits(const Framebuffer* framebuffer) { | |||
| 
 | ||||
|         // If the texture unit is disabled unbind the corresponding gl unit
 | ||||
|         if (!texture.enabled) { | ||||
|             state.texture_units[texture_index].texture_2d = 0; | ||||
|             const Surface& null_surface = res_cache.GetSurface(VideoCore::NULL_SURFACE_ID); | ||||
|             state.texture_units[texture_index].texture_2d = null_surface.Handle(); | ||||
|             continue; | ||||
|         } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue