Fixed a big in OGLES driver

master
Chris 2011-11-20 21:07:51 +08:00
parent 76827bb508
commit 1312fe9017
2 changed files with 4 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,4 +1,6 @@
.svn .svn
build/ build/
*/build/
xcuserdata/ xcuserdata/
project.xcworkspace/ project.xcworkspace/
lib/

View File

@ -2028,6 +2028,8 @@ void COGLES1Driver::setBasicRenderStates(const SMaterial& material, const SMater
// Filtering has to be set for each texture layer // Filtering has to be set for each texture layer
for (u32 i=0; i<MaxTextureUnits; ++i) for (u32 i=0; i<MaxTextureUnits; ++i)
{ {
if(!CurrentTexture[i])
continue;
if (MultiTextureExtension) if (MultiTextureExtension)
extGlActiveTexture(GL_TEXTURE0 + i); extGlActiveTexture(GL_TEXTURE0 + i);
else if (i>0) else if (i>0)