aboutsummaryrefslogtreecommitdiffstats
path: root/code/renderer
diff options
context:
space:
mode:
Diffstat (limited to 'code/renderer')
-rw-r--r--code/renderer/tr_local.h22
1 files changed, 8 insertions, 14 deletions
diff --git a/code/renderer/tr_local.h b/code/renderer/tr_local.h
index 646cc6f..865128f 100644
--- a/code/renderer/tr_local.h
+++ b/code/renderer/tr_local.h
@@ -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;