From 3ff7f3158bdafc6fa4bfc93d66ebfedaf11cd2d3 Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 28 Mar 2024 14:25:07 +0100 Subject: [PATCH] why tf is that here --- src/r_defs.h | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/src/r_defs.h b/src/r_defs.h index 39bc9fb69..541df9b14 100644 --- a/src/r_defs.h +++ b/src/r_defs.h @@ -627,6 +627,10 @@ typedef struct // textures from the TEXTURE1 list of patches. // // WARNING: this structure is cloned in GLPatch_t +#if defined(_MSC_VER) +#pragma pack(1) +#endif + typedef struct { INT16 width; // bounding box size @@ -644,20 +648,6 @@ typedef struct #endif } patch_t; -#if defined(_MSC_VER) -#pragma pack(1) -#endif - -typedef struct -{ - INT16 width; // bounding box size - INT16 height; - INT16 leftoffset; // pixels to the left of origin - INT16 topoffset; // pixels below the origin - INT32 columnofs[8]; // only [width] used - // the [0] is &columnofs[width] -} ATTRPACK softwarepatch_t; - #ifdef _MSC_VER #pragma warning(disable : 4200) #endif