Don't return the "out of memory" error code from daskinloader() if kplib reports either of the dimensions are 0. Instead, return the generic failure code.

git-svn-id: https://svn.eduke32.com/eduke32@1851 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2011-03-19 18:01:13 +00:00
parent 9b0cd02e8a
commit cfd4661b0b

View file

@ -437,7 +437,7 @@ static int32_t daskinloader(int32_t filh, intptr_t *fptr, int32_t *bpl, int32_t
// xsiz/y = 2^x size of replacement
kpgetdim(picfil,picfillen,&tsizx,&tsizy);
if (tsizx == 0 || tsizy == 0) { Bfree(picfil); return -1; }
if (tsizx == 0 || tsizy == 0) { Bfree(picfil); return -2; }
if (!glinfo.texnpot)
{