Don't crash if missing texture
This commit is contained in:
parent
5b2cb52dc5
commit
12522cc99f
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user