Skip to content

Commit

Permalink
REVIEWED: glfwGetError() not availbale on PLATFORM_WEB fix #3470
Browse files Browse the repository at this point in the history
  • Loading branch information
raysan5 committed Oct 26, 2023
1 parent 77730c8 commit 1cef62c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platforms/rcore_web.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,12 +864,12 @@ int InitPlatform(void)
glfwSetCursorEnterCallback(platform.handle, CursorEnterCallback);

glfwMakeContextCurrent(platform.handle);
result = glfwGetError(NULL);
result = 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 (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;
Expand Down

0 comments on commit 1cef62c

Please sign in to comment.