瀏覽代碼

REVIEWED: `glfwGetError()` not availbale on `PLATFORM_WEB` fix #3470

pull/3472/head
Ray 1 年之前
父節點
當前提交
1cef62cf05
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      src/platforms/rcore_web.c

+ 3
- 3
src/platforms/rcore_web.c 查看文件

@ -864,12 +864,12 @@ int InitPlatform(void)
glfwSetCursorEnterCallback(platform.handle, CursorEnterCallback);
glfwMakeContextCurrent(platform.handle);
result = glfwGetError(NULL);
result = b">true; // TODO: WARNING: glfwGetError(NULL); symbol can not be found in Web
// Check context activation
if ((result != GLFW_NO_WINDOW_CONTEXT) && (result != GLFW_PLATFORM_ERROR))
if (n">result == true) //(result != GLFW_NO_WINDOW_CONTEXT) && (result != GLFW_PLATFORM_ERROR))
{
CORE.Window.ready = true; // TODO: Proper validation on windows/context creation
CORE.Window.ready = true;
int fbWidth = CORE.Window.screen.width;
int fbHeight = CORE.Window.screen.height;

Loading…
取消
儲存