don't use texture_get_key path address optimization when compiled with hot reload support

This commit is contained in:
veclav talica 2024-08-22 19:43:57 +03:00
parent 9da92775bc
commit d85d9880fb

View File

@ -383,7 +383,7 @@ void textures_update_atlas(struct texture_cache *cache) {
} }
/* EXPERIMANTAL: LIKELY TO BE REMOVED! */ /* EXPERIMANTAL: LIKELY TO BE REMOVED! */
#ifdef __linux__ /* use rodata elf section for fast lookups of repeating textures */ #if defined(__linux__) && !defined(HOT_RELOAD_SUPPORT) /* use rodata elf section for fast lookups of repeating textures */
#include "townengine/system/linux/elf.h" #include "townengine/system/linux/elf.h"
@ -550,7 +550,7 @@ size_t textures_get_num_atlases(const struct texture_cache *cache) {
} }
void textures_reset_state(void) { void textures_reset_state(void) {
#ifdef __linux__ #if defined(__linux__) && !defined(HOT_RELOAD_SUPPORT)
last_path = NULL; last_path = NULL;
last_texture = (t_texture_key){0}; last_texture = (t_texture_key){0};
shfree(ptr_to_texture); shfree(ptr_to_texture);