Kaynağa Gözat

Added note on GLFW custom allocators for the future

pull/1946/head
Ray 4 yıl önce
ebeveyn
işleme
b154bc33f5
1 değiştirilmiş dosya ile 11 ekleme ve 0 silme
  1. +11
    -0
      src/core.c

+ 11
- 0
src/core.c Dosyayı Görüntüle

@ -3583,6 +3583,17 @@ static bool InitGraphicsDevice(int width, int height)
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) #if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB)
glfwSetErrorCallback(ErrorCallback); glfwSetErrorCallback(ErrorCallback);
/*
// Setup custom allocators to match raylib ones
const GLFWallocator allocator = {
.allocate = MemAlloc,
.deallocate = MemFree,
.reallocate = MemRealloc,
.user = NULL
};
glfwInitAllocator(&allocator);
*/
#if defined(__APPLE__) #if defined(__APPLE__)
glfwInitHint(GLFW_COCOA_CHDIR_RESOURCES, GLFW_FALSE); glfwInitHint(GLFW_COCOA_CHDIR_RESOURCES, GLFW_FALSE);

Yükleniyor…
İptal
Kaydet