* Replaced ALIGN macro with PAD
* Moved ALIGN16 macro from tr_local.h to ALIGN in q_shared.h
This commit is contained in:
parent
cfdd586ef8
commit
1704eecc52
6 changed files with 25 additions and 24 deletions
|
@ -1274,24 +1274,18 @@ typedef struct stageVars
|
|||
} stageVars_t;
|
||||
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define ALIGN16 __attribute__((aligned(16)))
|
||||
#else
|
||||
#define ALIGN16
|
||||
#endif
|
||||
|
||||
typedef struct shaderCommands_s
|
||||
{
|
||||
glIndex_t indexes[SHADER_MAX_INDEXES] ALIGN16;
|
||||
vec4_t xyz[SHADER_MAX_VERTEXES] ALIGN16;
|
||||
vec4_t normal[SHADER_MAX_VERTEXES] ALIGN16;
|
||||
vec2_t texCoords[SHADER_MAX_VERTEXES][2] ALIGN16;
|
||||
color4ub_t vertexColors[SHADER_MAX_VERTEXES] ALIGN16;
|
||||
int vertexDlightBits[SHADER_MAX_VERTEXES] ALIGN16;
|
||||
glIndex_t indexes[SHADER_MAX_INDEXES] ALIGN(16);
|
||||
vec4_t xyz[SHADER_MAX_VERTEXES] ALIGN(16);
|
||||
vec4_t normal[SHADER_MAX_VERTEXES] ALIGN(16);
|
||||
vec2_t texCoords[SHADER_MAX_VERTEXES][2] ALIGN(16);
|
||||
color4ub_t vertexColors[SHADER_MAX_VERTEXES] ALIGN(16);
|
||||
int vertexDlightBits[SHADER_MAX_VERTEXES] ALIGN(16);
|
||||
|
||||
stageVars_t svars ALIGN16;
|
||||
stageVars_t svars ALIGN(16);
|
||||
|
||||
color4ub_t constantColor255[SHADER_MAX_VERTEXES] ALIGN16;
|
||||
color4ub_t constantColor255[SHADER_MAX_VERTEXES] ALIGN(16);
|
||||
|
||||
shader_t *shader;
|
||||
float shaderTime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue