diff options
| author | omegadox <omegadox@gmail.com> | 2009-04-03 15:39:16 +0000 |
|---|---|---|
| committer | omegadox <omegadox@gmail.com> | 2009-04-03 15:39:16 +0000 |
| commit | f5feb28ae6019fddb6aed05d053958f7d6443dc1 (patch) | |
| tree | 4e03db1eccfd45964d5cda8a2b5627102f14fae1 /Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp | |
| parent | f0fff9cb199392d63cd6e23ab80b61489611d4f1 (diff) | |
OpenGL Plugin: small fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2852 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp b/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp index 2563f3d2be..c0d17d8775 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/NativeVertexFormat.cpp @@ -262,13 +262,16 @@ void GLVertexFormat::EnableComponents(u32 components) // tex for (int i = 0; i < 8; ++i) { - if ((components & (VB_HAS_UV0 << i)) != (s_prevcomponents & (VB_HAS_UV0 << i)) && !g_Config.bDisableTexturing) + if (!g_Config.bDisableTexturing) { - glClientActiveTexture(GL_TEXTURE0 + i); - if (components & (VB_HAS_UV0 << i)) - glEnableClientState(GL_TEXTURE_COORD_ARRAY); - else - glDisableClientState(GL_TEXTURE_COORD_ARRAY); + if ((components & (VB_HAS_UV0 << i)) != (s_prevcomponents & (VB_HAS_UV0 << i))) + { + glClientActiveTexture(GL_TEXTURE0 + i); + if (components & (VB_HAS_UV0 << i)) + glEnableClientState(GL_TEXTURE_COORD_ARRAY); + else + glDisableClientState(GL_TEXTURE_COORD_ARRAY); + } } else { |
