mirror of
https://github.com/ioquake/jedi-outcast.git
synced 2024-11-09 23:01:48 +00:00
add a gcc style alignment alternative to msvc code
This commit is contained in:
parent
92d13d1c98
commit
6d2a2a5c1e
1 changed files with 4 additions and 2 deletions
|
@ -1474,10 +1474,12 @@ struct shaderCommands_s
|
|||
qboolean SSInitializedWind;
|
||||
|
||||
};
|
||||
#ifndef DEDICATED
|
||||
#ifdef _MSVC_VER
|
||||
typedef __declspec(align(16)) shaderCommands_s shaderCommands_t;
|
||||
extern shaderCommands_t tess;
|
||||
#else
|
||||
typedef __attribute__((aligned(16))) shaderCommands_s shaderCommands_t;
|
||||
#endif
|
||||
extern shaderCommands_t tess;
|
||||
extern color4ub_t styleColors[MAX_LIGHT_STYLES];
|
||||
|
||||
void RB_BeginSurface(shader_t *shader, int fogNum );
|
||||
|
|
Loading…
Reference in a new issue