don't use texture_get_key path address optimization when compiled with hot reload support
This commit is contained in:
parent
9da92775bc
commit
d85d9880fb
@ -383,7 +383,7 @@ void textures_update_atlas(struct texture_cache *cache) {
|
||||
}
|
||||
|
||||
/* 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"
|
||||
|
||||
@ -550,7 +550,7 @@ size_t textures_get_num_atlases(const struct texture_cache *cache) {
|
||||
}
|
||||
|
||||
void textures_reset_state(void) {
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && !defined(HOT_RELOAD_SUPPORT)
|
||||
last_path = NULL;
|
||||
last_texture = (t_texture_key){0};
|
||||
shfree(ptr_to_texture);
|
||||
|
Loading…
Reference in New Issue
Block a user