Don't crash if missing texture

This commit is contained in:
Benau 2016-05-18 10:05:12 +08:00
parent 5b2cb52dc5
commit 12522cc99f

View File

@ -419,8 +419,7 @@ void initTexturesTransparent(GLMesh &mesh)
{
if (!mesh.textures[0])
{
Log::fatal("STKMesh", "Missing texture for material transparent");
return;
mesh.textures[0] = getUnicolorTexture(video::SColor(255, 255, 255, 255));
}
compressTexture(mesh.textures[0], true);
if (CVS->isAZDOEnabled())