Avoid crash on non-existent textures

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@3801 dfc29bdd-3216-0410-991c-e03cc46cb475
master
hybrid 2011-06-06 14:05:34 +00:00
parent f88f0b3bff
commit 91127f56ac
1 changed files with 2 additions and 0 deletions

View File

@ -1637,6 +1637,8 @@ namespace video
// Filtering has to be set for each texture layer
for (u32 i = 0; i < MaxTextureUnits; ++i)
{
if (!CurrentTexture[i])
continue;
//Thibault : strange Blue artifact on textures in exemple 02
glActiveTexture(GL_TEXTURE0 + i);