diff --git a/source/lib/res/tex.cpp b/source/lib/res/tex.cpp index d8c8b3b38e..15e1e935f5 100755 --- a/source/lib/res/tex.cpp +++ b/source/lib/res/tex.cpp @@ -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)