From 3d0025b594298e517f9a90402e706c4a4841100f Mon Sep 17 00:00:00 2001 From: nillerusr Date: Mon, 14 Aug 2023 16:33:34 +0300 Subject: [PATCH] vtf: fix vtf header padding --- public/vtf/vtf.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/public/vtf/vtf.h b/public/vtf/vtf.h index 6cb2e79e..436468fe 100644 --- a/public/vtf/vtf.h +++ b/public/vtf/vtf.h @@ -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;