diff options
| author | 2017-06-16 22:22:24 +0300 | |
|---|---|---|
| committer | 2017-06-21 23:13:06 +0300 | |
| commit | 457659fe01891122881d8020da79c11732820913 (patch) | |
| tree | d8e0d166ae1cba37393bbaa4c562b630b4f12d2a /src/video_core | |
| parent | gl_rasterizer: fix glGetUniformLocation type (diff) | |
| download | yuzu-457659fe01891122881d8020da79c11732820913.tar.gz yuzu-457659fe01891122881d8020da79c11732820913.tar.xz yuzu-457659fe01891122881d8020da79c11732820913.zip | |
gl_state: reset 1d textures
Diffstat (limited to 'src/video_core')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 14 |
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 | ||
| 275 | void OpenGLState::ResetSampler(GLuint handle) { | 289 | void OpenGLState::ResetSampler(GLuint handle) { |