StrataSource / vtex2

A VTF converter and editor
MIT License
42 stars 8 forks source link

Outputted VTF files are not trimmed to their correct sizes #37

Closed jvyden closed 8 months ago

jvyden commented 10 months ago

Creating a .VTF file via vtex2 convert -f dxt1_onebitalpha will output a file that is larger than the real size of the VTF.

VTFedit shows the correct size of the file, but the raw file on-disk ends in a bunch of null bytes that extend significantly larger than the data of the file:

image image

WinterPhoenix commented 8 months ago

I fixed it; see the PR in VTFLib