Don't crash if missing texture
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user