forked from 0ad/0ad
fix tex_load return value check - Handle invalid <==> <= 0
This was SVN commit r1153.
This commit is contained in:
parent
167a077bc2
commit
18e016578d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user