mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-09-01 08:09:19 +02:00
stdafx: Only use GLM_FORCE_DEFAULT_ALIGNED_GENTYPES on MSVC (#136)
It causes the game to crash on launch while attempting to use SIMD instructions when compiled with GCC or Clang. Since it's known to work on MSVC and was enabled due to performance improvement, leave it enabled there.
This commit is contained in:
committed by
GitHub
parent
1929119db6
commit
8383472bbe
2
stdafx.h
2
stdafx.h
@@ -98,7 +98,9 @@
|
|||||||
#define GLM_ENABLE_EXPERIMENTAL
|
#define GLM_ENABLE_EXPERIMENTAL
|
||||||
#define GLM_FORCE_CTOR_INIT
|
#define GLM_FORCE_CTOR_INIT
|
||||||
#define GLM_FORCE_INLINE
|
#define GLM_FORCE_INLINE
|
||||||
|
#ifdef _MSC_VER
|
||||||
#define GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
|
#define GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
|
||||||
|
#endif
|
||||||
#define GLM_FORCE_INTRINSICS
|
#define GLM_FORCE_INTRINSICS
|
||||||
#include <glm/glm.hpp>
|
#include <glm/glm.hpp>
|
||||||
#include <glm/gtc/matrix_transform.hpp>
|
#include <glm/gtc/matrix_transform.hpp>
|
||||||
|
|||||||
Reference in New Issue
Block a user