mirror of
https://github.com/ioquake/jedi-academy.git
synced 2024-11-10 07:11:44 +00:00
add a gcc style alignment alternative to msvc code
This commit is contained in:
parent
6fc2559179
commit
1cfc2bde7b
1 changed files with 4 additions and 0 deletions
|
@ -1679,7 +1679,11 @@ struct shaderCommands_s
|
|||
bool fading;
|
||||
};
|
||||
|
||||
#ifdef _MSC_VER
|
||||
typedef __declspec(align(16)) shaderCommands_s shaderCommands_t;
|
||||
#else
|
||||
typedef __attribute__((aligned(16))) shaderCommands_s shaderCommands_t;
|
||||
#endif
|
||||
|
||||
extern shaderCommands_t tess;
|
||||
|
||||
|
|
Loading…
Reference in a new issue