Skip to content

Commit 3d0025b

Browse files
committed
vtf: fix vtf header padding
1 parent b6cb0c2 commit 3d0025b

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

public/vtf/vtf.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -471,14 +471,11 @@ struct VTFFileHeaderV7_1_t : public VTFFileBaseHeader_t
471471
unsigned int flags;
472472
unsigned short numFrames;
473473
unsigned short startFrame;
474-
#if !defined( POSIX ) && !defined( _X360 )
475-
VectorAligned reflectivity;
476-
#else
474+
477475
// must manually align in order to maintain pack(1) expected layout with existing binaries
478-
char pad1[4];
479-
Vector reflectivity;
480-
char pad2[4];
481-
#endif
476+
char pad1[4];
477+
VectorAligned reflectivity;
478+
482479
float bumpScale;
483480
ImageFormat imageFormat;
484481
unsigned char numMipLevels;

0 commit comments

Comments
 (0)