1
0
forked from 0ad/0ad

due to mem fix, DDS file size is correct; assert that verifies that was moved here from ogl_tex and un-commented-out

This was SVN commit r931.
This commit is contained in:
janwas 2004-08-07 13:33:30 +00:00
parent 5026705fe8
commit 58ae20116a

View File

@ -209,8 +209,8 @@ fail:
break;
}
if(file_size < hdr_size + img_size)
err = "image not completely loaded";
if(file_size != hdr_size + img_size)
err = "file size mismatch";
if(w % 4 || h % 4)
err = "image dimensions not padded to S3TC block size";
if(!w || !h)