mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-23 07:39:18 -05:00
REVIEWED: glfwGetError() not availbale on PLATFORM_WEB fix #3470
This commit is contained in:
@ -864,12 +864,12 @@ int InitPlatform(void)
|
|||||||
glfwSetCursorEnterCallback(platform.handle, CursorEnterCallback);
|
glfwSetCursorEnterCallback(platform.handle, CursorEnterCallback);
|
||||||
|
|
||||||
glfwMakeContextCurrent(platform.handle);
|
glfwMakeContextCurrent(platform.handle);
|
||||||
result = glfwGetError(NULL);
|
result = true; // TODO: WARNING: glfwGetError(NULL); symbol can not be found in Web
|
||||||
|
|
||||||
// Check context activation
|
// 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 fbWidth = CORE.Window.screen.width;
|
||||||
int fbHeight = CORE.Window.screen.height;
|
int fbHeight = CORE.Window.screen.height;
|
||||||
|
|||||||
Reference in New Issue
Block a user