Fixed compilation in release mode.
This commit is contained in:
parent
aac454f846
commit
ca6a0accaa
@ -286,8 +286,10 @@ SetTexture(GLMesh &mesh, unsigned i, bool isSrgb, const std::string &matname)
|
||||
{
|
||||
if (!mesh.textures[i])
|
||||
{
|
||||
#ifdef DEBUG
|
||||
Log::fatal("STKMesh", "Missing texture %d for material %s, mesh <%s>",
|
||||
i, matname.c_str(), mesh.debug_name.c_str());
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
compressTexture(mesh.textures[i], isSrgb);
|
||||
@ -371,4 +373,4 @@ void InitTexturesTransparent(GLMesh &mesh)
|
||||
if (!glIsTextureHandleResidentARB(mesh.TextureHandles[0]))
|
||||
glMakeTextureHandleResidentARB(mesh.TextureHandles[0]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user