OpenGL Plugin: small fix

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2852 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
omegadox 2009-04-03 15:39:16 +00:00
parent f0fff9cb19
commit f5feb28ae6
1 changed files with 9 additions and 6 deletions

View File

@ -262,7 +262,9 @@ void GLVertexFormat::EnableComponents(u32 components)
// tex // tex
for (int i = 0; i < 8; ++i) 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)
{
if ((components & (VB_HAS_UV0 << i)) != (s_prevcomponents & (VB_HAS_UV0 << i)))
{ {
glClientActiveTexture(GL_TEXTURE0 + i); glClientActiveTexture(GL_TEXTURE0 + i);
if (components & (VB_HAS_UV0 << i)) if (components & (VB_HAS_UV0 << i))
@ -270,6 +272,7 @@ void GLVertexFormat::EnableComponents(u32 components)
else else
glDisableClientState(GL_TEXTURE_COORD_ARRAY); glDisableClientState(GL_TEXTURE_COORD_ARRAY);
} }
}
else else
{ {
glClientActiveTexture(GL_TEXTURE0 + i); glClientActiveTexture(GL_TEXTURE0 + i);