mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-12-04 01:41:40 +00:00
Fixed missing 16 byte alignment on 32 bit Linux for SSE structs.
This commit is contained in:
parent
d7888cf99d
commit
b7d3481f57
2 changed files with 20 additions and 15 deletions
|
@ -116,13 +116,9 @@ If you have questions concerning this license or the applicable additional terms
|
||||||
|
|
||||||
#define _alloca alloca
|
#define _alloca alloca
|
||||||
|
|
||||||
// DG: mingw/GCC (and probably clang) support
|
|
||||||
#define ALIGN16( x ) x __attribute__ ((aligned (16)))
|
#define ALIGN16( x ) x __attribute__ ((aligned (16)))
|
||||||
// FIXME: change ALIGNTYPE* ?
|
#define ALIGNTYPE16 __attribute__ ((aligned (16)))
|
||||||
#define ALIGNTYPE16
|
#define ALIGNTYPE128 __attribute__ ((aligned (128)))
|
||||||
#define ALIGNTYPE128
|
|
||||||
// DG end
|
|
||||||
|
|
||||||
|
|
||||||
#define FORMAT_PRINTF( x )
|
#define FORMAT_PRINTF( x )
|
||||||
|
|
||||||
|
|
|
@ -75,16 +75,25 @@ struct decalProjectionParms_t
|
||||||
bool force;
|
bool force;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// RB begin
|
||||||
|
#if defined(_WIN32)
|
||||||
ALIGNTYPE16 struct decal_t
|
ALIGNTYPE16 struct decal_t
|
||||||
{
|
#endif
|
||||||
ALIGNTYPE16 idDrawVert verts[MAX_DECAL_VERTS];
|
struct decal_t
|
||||||
ALIGNTYPE16 triIndex_t indexes[MAX_DECAL_INDEXES];
|
{
|
||||||
float vertDepthFade[MAX_DECAL_VERTS];
|
ALIGNTYPE16 idDrawVert verts[MAX_DECAL_VERTS];
|
||||||
int numVerts;
|
ALIGNTYPE16 triIndex_t indexes[MAX_DECAL_INDEXES];
|
||||||
int numIndexes;
|
float vertDepthFade[MAX_DECAL_VERTS];
|
||||||
int startTime;
|
int numVerts;
|
||||||
const idMaterial* material;
|
int numIndexes;
|
||||||
};
|
int startTime;
|
||||||
|
const idMaterial* material;
|
||||||
|
}
|
||||||
|
#if !defined(_WIN32)
|
||||||
|
ALIGNTYPE16
|
||||||
|
#endif
|
||||||
|
// RB end
|
||||||
|
;
|
||||||
|
|
||||||
class idRenderModelDecal
|
class idRenderModelDecal
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue