Check for OGRE_MAX_TEXTURE_LAYERS