row_inci = 0;
}
- x = 0;
- y = 0;
pix_inc = 1;
if ((targa_header.image_type & ~8) == 2)
pix_inc = (targa_header.pixel_size + 7) / 8;
{
int mymiplevel2 = miplevel ? *miplevel : 0;
data2 = format->loadfunc(f, (int)filesize, &mymiplevel2);
- if(mymiplevel != mymiplevel2)
- Host_Error("loadimagepixelsbgra: miplevels differ");
+ if(data2 && mymiplevel == mymiplevel2)
+ Image_CopyAlphaFromBlueBGRA(data, data2, image_width, image_height);
+ else
+ Con_Printf("loadimagepixelsrgba: corrupt or invalid alpha image %s_alpha\n", basename);
+ if(data2)
+ Mem_Free(data2);
Mem_Free(f);
- Image_CopyAlphaFromBlueBGRA(data, data2, image_width, image_height);
- Mem_Free(data2);
}
}
if (developer_loading.integer)