瀏覽代碼

Add workaround for NetBSD (#4139)

pull/4278/head
NishiOwO 1 年之前
committed by GitHub
父節點
當前提交
598b7f5210
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: B5690EEEBB952194
共有 1 個檔案被更改,包括 5 行新增0 行删除
  1. +5
    -0
      src/platforms/rcore_desktop_glfw.c

+ 5
- 0
src/platforms/rcore_desktop_glfw.c 查看文件

@ -1617,6 +1617,10 @@ int InitPlatform(void)
CORE.Storage.basePath = GetWorkingDirectory();
//----------------------------------------------------------------------------
#if defined(__NetBSD__)
// Workaround for NetBSD
char* glfwPlatform = "X11";
#else
char* glfwPlatform = "";
switch (glfwGetPlatform())
{
@ -1626,6 +1630,7 @@ int InitPlatform(void)
case GLFW_PLATFORM_X11: glfwPlatform = "X11"; break;
case GLFW_PLATFORM_NULL: glfwPlatform = "Null"; break;
}
#endif
TRACELOG(LOG_INFO, "GLFW platform: %s", glfwPlatform);
TRACELOG(LOG_INFO, "PLATFORM: DESKTOP (GLFW): Initialized successfully");

Loading…
取消
儲存