16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-09-01 06:59:18 +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:
Sebastian Krzyszkowiak
2026-07-21 22:57:00 +02:00
committed by GitHub
parent 1929119db6
commit 8383472bbe

View File

@@ -98,7 +98,9 @@
#define GLM_ENABLE_EXPERIMENTAL
#define GLM_FORCE_CTOR_INIT
#define GLM_FORCE_INLINE
#ifdef _MSC_VER
#define GLM_FORCE_DEFAULT_ALIGNED_GENTYPES
#endif
#define GLM_FORCE_INTRINSICS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>