mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-13 06:58:56 +01:00
Raylib allows for providing custom allocators via macros. GLFW supports this too, but via function pointers. Make sure that GLFW uses those Raylib macros, by wrapping them in function calls and setting them up inside of InitPlatform(). This is possible because of glfwInitAllocator() and GLFWallocator. Fixes: https://github.com/raysan5/raylib/issues/4776 Relates-to: https://github.com/raysan5/raylib/issues/4751