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-e03cc46cb475master
parent
f88f0b3bff
commit
91127f56ac
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue