diff options
| -rw-r--r-- | src/video_core/renderer_opengl/gl_state.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index 4cf3d0a8a..39b3986d3 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp | |||
| @@ -420,7 +420,11 @@ void OpenGLState::ApplyTextures() { | |||
| 420 | const std::size_t size = std::size(textures); | 420 | const std::size_t size = std::size(textures); |
| 421 | for (std::size_t i = 0; i < size; ++i) { | 421 | for (std::size_t i = 0; i < size; ++i) { |
| 422 | if (UpdateValue(cur_state.textures[i], textures[i])) { | 422 | if (UpdateValue(cur_state.textures[i], textures[i])) { |
| 423 | glBindTextureUnit(static_cast<GLuint>(i), textures[i]); | 423 | // BindTextureUnit doesn't support binding null textures, skip those binds. |
| 424 | // TODO(Rodrigo): Stop using null textures | ||
| 425 | if (textures[i] != 0) { | ||
| 426 | glBindTextureUnit(static_cast<GLuint>(i), textures[i]); | ||
| 427 | } | ||
| 424 | } | 428 | } |
| 425 | } | 429 | } |
| 426 | } | 430 | } |