mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	gl_state: reset 1d textures
This commit is contained in:
		
							parent
							
								
									42f7ca7412
								
							
						
					
					
						commit
						457659fe01
					
				
					 1 changed files with 14 additions and 0 deletions
				
			
		|  | @ -270,6 +270,20 @@ void OpenGLState::ResetTexture(GLuint handle) { | |||
|             unit.texture_2d = 0; | ||||
|         } | ||||
|     } | ||||
|     if (cur_state.lighting_lut.texture_buffer == handle) | ||||
|         cur_state.lighting_lut.texture_buffer = 0; | ||||
|     if (cur_state.fog_lut.texture_1d == handle) | ||||
|         cur_state.fog_lut.texture_1d = 0; | ||||
|     if (cur_state.proctex_noise_lut.texture_1d == handle) | ||||
|         cur_state.proctex_noise_lut.texture_1d = 0; | ||||
|     if (cur_state.proctex_color_map.texture_1d == handle) | ||||
|         cur_state.proctex_color_map.texture_1d = 0; | ||||
|     if (cur_state.proctex_alpha_map.texture_1d == handle) | ||||
|         cur_state.proctex_alpha_map.texture_1d = 0; | ||||
|     if (cur_state.proctex_lut.texture_1d == handle) | ||||
|         cur_state.proctex_lut.texture_1d = 0; | ||||
|     if (cur_state.proctex_diff_lut.texture_1d == handle) | ||||
|         cur_state.proctex_diff_lut.texture_1d = 0; | ||||
| } | ||||
| 
 | ||||
| void OpenGLState::ResetSampler(GLuint handle) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue