1
0
forked from 0ad/0ad

fix tex_load return value check - Handle invalid <==> <= 0

This was SVN commit r1153.
This commit is contained in:
janwas 2004-09-19 11:39:47 +00:00
parent 167a077bc2
commit 18e016578d

View File

@ -1028,7 +1028,7 @@ bool CRenderer::LoadTexture(CTexture* texture,u32 wrapflags)
return h==0xffffffff ? true : false;
} else {
h=tex_load(texture->GetName());
if (!h) {
if (h <= 0) {
LOG(ERROR, LOG_CATEGORY, "LoadTexture failed on \"%s\"",(const char*) texture->GetName());
texture->SetHandle(0xffffffff);
return false;