From 23d5df9d9c77e405f03ea1c1616e27764c290728 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 22 May 2015 19:48:06 -0400 Subject: gl_state: Fix a condition typo in Apply --- src/video_core/renderer_opengl/gl_state.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp index ca8a371e7..938edf1c2 100644 --- a/src/video_core/renderer_opengl/gl_state.cpp +++ b/src/video_core/renderer_opengl/gl_state.cpp @@ -120,7 +120,7 @@ const void OpenGLState::Apply() { // Textures for (unsigned texture_index = 0; texture_index < ARRAY_SIZE(texture_units); ++texture_index) { - if (texture_units[texture_index].enabled_2d != texture_units[texture_index].enabled_2d) { + if (texture_units[texture_index].enabled_2d != cur_state.texture_units[texture_index].enabled_2d) { glActiveTexture(GL_TEXTURE0 + texture_index); if (texture_units[texture_index].enabled_2d) { -- cgit v1.2.3