mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	Merge pull request #3799 from wwylele/sigh
gl_rasterizer: reset texture state context after every draw
This commit is contained in:
		
						commit
						08b119153d
					
				
					 1 changed files with 7 additions and 0 deletions
				
			
		|  | @ -786,6 +786,13 @@ bool RasterizerOpenGL::Draw(bool accelerate, bool is_indexed) { | |||
| 
 | ||||
|     vertex_batch.clear(); | ||||
| 
 | ||||
|     // Reset textures in rasterizer state context because the rasterizer cache might delete them
 | ||||
|     for (unsigned texture_index = 0; texture_index < pica_textures.size(); ++texture_index) { | ||||
|         state.texture_units[texture_index].texture_2d = 0; | ||||
|     } | ||||
|     state.texture_cube_unit.texture_cube = 0; | ||||
|     state.Apply(); | ||||
| 
 | ||||
|     // Mark framebuffer surfaces as dirty
 | ||||
|     MathUtil::Rectangle<u32> draw_rect_unscaled{ | ||||
|         draw_rect.left / res_scale, draw_rect.top / res_scale, draw_rect.right / res_scale, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue