Fixed compilation in release mode.

This commit is contained in:
hiker 2014-10-31 09:14:18 +11:00
parent aac454f846
commit ca6a0accaa

View File

@ -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]);
}
}
}