taisei/src/resource/texture_loader
Andrei Alexeyev fda8556a39
src: deprecate strdup(), use mem_strdup() explicitly
This fixes a nasty bug that manifests on windows when building without
precompiled headers. util/stringops.h used to silently replace strdup
with a macro that's compatible with mem_free(). This header would
typically be included everywhere due to PCH, but without it the strdup
from libc would sometimes be in scope. On most platforms mem_free() is
equivalent to free(), but not on windows, because we have to use
_aligned_free() there. Attempting to mem_free() the result of a libc
strdup() would segfault in such a configuration.

Avoid the footgun by banning strdup() entirely. Maybe redefining libc
names isn't such a great idea, who knew?
2024-09-10 14:31:55 +02:00
..
basisu.c resource/texture_loader: remove bad assert; handle r_texture_create() failure 2024-08-30 11:52:47 +02:00
basisu.h src: run upkeep 2024-05-17 04:58:47 +02:00
basisu_cache.c src: the great #include massacre of 2024 2024-05-17 14:11:48 +02:00
basisu_cache.h src: the great #include massacre of 2024 2024-05-17 14:11:48 +02:00
meson.build Texturing overhaul: GPU compression, sRGB sampling, swizzles, etc. (#240) 2020-08-15 14:51:12 +03:00
texture_loader.c src: deprecate strdup(), use mem_strdup() explicitly 2024-09-10 14:31:55 +02:00
texture_loader.h src: the great #include massacre of 2024 2024-05-17 14:11:48 +02:00