Merge pull request #5045 from sleeptightAnsiC/fix_gputex_logging

[rl_gputex] fix: decouple logging and memory allocation from Raylib
This commit is contained in:
Ray 2025-07-26 11:25:58 +02:00 • committed by GitHub
commit 94d8d7133b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 167 additions and 68 deletions

View file

@ -168,6 +168,18 @@
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-function"
#endif
#define RL_GPUTEX_MALLOC RL_MALLOC
#define RL_GPUTEX_CALLOC RL_CALLOC
#define RL_GPUTEX_REALLOC RL_REALLOC
#define RL_GPUTEX_FREE RL_FREE
#define RL_GPUTEX_WARN(...) TRACELOG(LOG_WARNING, "IMAGE: " __VA_ARGS__)
#define RL_GPUTEX_SHOW_WARN_INFO
// FIXME: probably, we should NOT export public functions from rl_gputex
// but this is how it always worked... so let's keep it this way
#define RLGPUTEXAPI RLAPI
#define RL_GPUTEX_IMPLEMENTATION
#include "external/rl_gputex.h" // Required for: rl_load_xxx_from_memory()