Skip to content

Commit

Permalink
vtf: fix vtf header padding
Browse files Browse the repository at this point in the history
  • Loading branch information
nillerusr committed Aug 14, 2023
1 parent b6cb0c2 commit 3d0025b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions public/vtf/vtf.h
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,11 @@ struct VTFFileHeaderV7_1_t : public VTFFileBaseHeader_t
unsigned int flags;
unsigned short numFrames;
unsigned short startFrame;
#if !defined( POSIX ) && !defined( _X360 )
VectorAligned reflectivity;
#else

// must manually align in order to maintain pack(1) expected layout with existing binaries
char pad1[4];
Vector reflectivity;
char pad2[4];
#endif
char pad1[4];
VectorAligned reflectivity;

float bumpScale;
ImageFormat imageFormat;
unsigned char numMipLevels;
Expand Down

0 comments on commit 3d0025b

Please sign in to comment.