summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index 6ef6d6c4c..14e63115c 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/src/video_core/renderer_opengl/gl_state.cpp
@@ -270,6 +270,20 @@ void OpenGLState::ResetTexture(GLuint handle) {
270 unit.texture_2d = 0; 270 unit.texture_2d = 0;
271 } 271 }
272 } 272 }
273 if (cur_state.lighting_lut.texture_buffer == handle)
274 cur_state.lighting_lut.texture_buffer = 0;
275 if (cur_state.fog_lut.texture_1d == handle)
276 cur_state.fog_lut.texture_1d = 0;
277 if (cur_state.proctex_noise_lut.texture_1d == handle)
278 cur_state.proctex_noise_lut.texture_1d = 0;
279 if (cur_state.proctex_color_map.texture_1d == handle)
280 cur_state.proctex_color_map.texture_1d = 0;
281 if (cur_state.proctex_alpha_map.texture_1d == handle)
282 cur_state.proctex_alpha_map.texture_1d = 0;
283 if (cur_state.proctex_lut.texture_1d == handle)
284 cur_state.proctex_lut.texture_1d = 0;
285 if (cur_state.proctex_diff_lut.texture_1d == handle)
286 cur_state.proctex_diff_lut.texture_1d = 0;
273} 287}
274 288
275void OpenGLState::ResetSampler(GLuint handle) { 289void OpenGLState::ResetSampler(GLuint handle) {