From 20394eed6c96bf5b3644bea2cc11e5b312246cd6 Mon Sep 17 00:00:00 2001 From: veclavtalica Date: Sun, 26 Jan 2025 23:26:48 +0300 Subject: [PATCH] disable elf texture lookup hack --- src/twn_textures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/twn_textures.c b/src/twn_textures.c index 2461a46..9d61334 100644 --- a/src/twn_textures.c +++ b/src/twn_textures.c @@ -462,7 +462,7 @@ void textures_update_atlas(TextureCache *cache) { } /* EXPERIMANTAL: LIKELY TO BE REMOVED! */ -#if defined(__linux__) /* use rodata elf section for fast lookups of repeating textures */ +#if defined(__linux_x_) /* use rodata elf section for fast lookups of repeating textures */ #include "system/linux/twn_elf.h" @@ -628,7 +628,7 @@ size_t textures_get_num_atlases(const TextureCache *cache) { } void textures_reset_state(void) { -#if defined(__linux__) && !defined(HOT_RELOAD_SUPPORT) +#if defined(__linux__x) && !defined(HOT_RELOAD_SUPPORT) last_path = NULL; last_texture = (TextureKey){0}; shfree(ptr_to_texture);