Fix Windows ARM64 build: disable x86 asm in StormLib's libtomcrypt

StormLib's bundled libtomcrypt uses x86 inline assembly (bswapl/movl)
gated by __MINGW32__, which is defined on CLANGARM64 too. Pass
-DLTC_NO_BSWAP to force portable C byte-swap fallback.
This commit is contained in:
Kelsi 2026-02-25 03:06:06 -08:00
parent 9b90ab0429
commit 7ca9caa212
6 changed files with 26 additions and 89 deletions

View file

@ -478,7 +478,6 @@ private:
// Helper to allocate descriptor sets
VkDescriptorSet allocateMaterialSet();
VkDescriptorSet allocateBoneSet();
void preallocateBoneBuffers(M2Instance& instance);
// Helper to destroy model GPU resources
void destroyModelGPU(M2ModelGPU& model);

View file

@ -657,9 +657,9 @@ private:
bool wireframeMode = false;
bool frustumCulling = true;
bool portalCulling = false; // Disabled by default - needs debugging
bool distanceCulling = true; // Enabled with active-group exemption to prevent floor disappearing
float maxGroupDistance = 800.0f;
float maxGroupDistanceSq = 640000.0f; // maxGroupDistance^2
bool distanceCulling = false; // Disabled - causes ground to disappear
float maxGroupDistance = 500.0f;
float maxGroupDistanceSq = 250000.0f; // maxGroupDistance^2
uint32_t lastDrawCalls = 0;
mutable uint32_t lastPortalCulledGroups = 0;
mutable uint32_t lastDistanceCulledGroups = 0;