summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-06-16 21:22:24 +0200
committerwwylele <wwylele@gmail.com>2017-06-21 22:13:06 +0200
commit457659fe01891122881d8020da79c11732820913 (patch)
treed8e0d166ae1cba37393bbaa4c562b630b4f12d2a /src
parentgl_rasterizer: fix glGetUniformLocation type (diff)
downloadyuzu-457659fe01891122881d8020da79c11732820913.tar
yuzu-457659fe01891122881d8020da79c11732820913.tar.gz
yuzu-457659fe01891122881d8020da79c11732820913.tar.bz2
yuzu-457659fe01891122881d8020da79c11732820913.tar.lz
yuzu-457659fe01891122881d8020da79c11732820913.tar.xz
yuzu-457659fe01891122881d8020da79c11732820913.tar.zst
yuzu-457659fe01891122881d8020da79c11732820913.zip
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) {
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) {