summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2023-10-26 11:10:41 +0200
committerRay <[email protected]>2023-10-26 11:10:41 +0200
commit1cef62cf052432755e9955aa8798eca339dcf1d3 (patch)
tree7d86b819a389b07ae66c35931e1db4d3f2fe3088 /src
parent77730c80d903083751cc81a6912593c95f4f7165 (diff)
downloadraylib-1cef62cf052432755e9955aa8798eca339dcf1d3.tar.gz
raylib-1cef62cf052432755e9955aa8798eca339dcf1d3.zip
REVIEWED: `glfwGetError()` not availbale on `PLATFORM_WEB` fix #3470
Diffstat (limited to 'src')
-rw-r--r--src/platforms/rcore_web.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/platforms/rcore_web.c b/src/platforms/rcore_web.c
index 3da23a05..e2373e45 100644
--- a/src/platforms/rcore_web.c
+++ b/src/platforms/rcore_web.c
@@ -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;