summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-23 01:54:06 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2015-05-23 01:54:06 +0200
commit4c207798b47836fedb09e93b3bb5bdd00bc91bd1 (patch)
tree1f651364ebccde78ed33f72bcb1fa8bbb33b452b /src/video_core
parentMerge pull request #802 from bunnei/vfp-trace-log (diff)
parentgl_state: Fix a condition typo in Apply (diff)
downloadyuzu-4c207798b47836fedb09e93b3bb5bdd00bc91bd1.tar
yuzu-4c207798b47836fedb09e93b3bb5bdd00bc91bd1.tar.gz
yuzu-4c207798b47836fedb09e93b3bb5bdd00bc91bd1.tar.bz2
yuzu-4c207798b47836fedb09e93b3bb5bdd00bc91bd1.tar.lz
yuzu-4c207798b47836fedb09e93b3bb5bdd00bc91bd1.tar.xz
yuzu-4c207798b47836fedb09e93b3bb5bdd00bc91bd1.tar.zst
yuzu-4c207798b47836fedb09e93b3bb5bdd00bc91bd1.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp2
1 files changed, 1 insertions, 1 deletions
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) {