mirror of
https://github.com/ioquake/jedi-outcast.git
synced 2024-11-10 07:11:42 +00:00
add a gcc style alignment alternative to msvc code
This commit is contained in:
parent
e1727dbe76
commit
d1ba86a638
1 changed files with 5 additions and 1 deletions
|
@ -1412,7 +1412,11 @@ struct shaderCommands_s
|
||||||
#endif // _NPATCH
|
#endif // _NPATCH
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
typedef __declspec(align(16)) shaderCommands_s shaderCommands_t;
|
typedef __declspec(align(16)) shaderCommands_s shaderCommands_t;
|
||||||
|
#else
|
||||||
|
typedef __attribute__((aligned(16))) shaderCommands_s shaderCommands_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
extern shaderCommands_t tess;
|
extern shaderCommands_t tess;
|
||||||
|
|
||||||
|
@ -1805,4 +1809,4 @@ Ghoul2 Insert End
|
||||||
// tr_surfacesprites
|
// tr_surfacesprites
|
||||||
void RB_DrawSurfaceSprites( shaderStage_t *stage, shaderCommands_t *input);
|
void RB_DrawSurfaceSprites( shaderStage_t *stage, shaderCommands_t *input);
|
||||||
|
|
||||||
#endif //TR_LOCAL_H
|
#endif //TR_LOCAL_H
|
||||||
|
|
Loading…
Reference in a new issue