Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[desktop_glfw] fix InitPlatform crash caused by glfwCreateWindow... #4804

Merged

Conversation

sleeptightAnsiC
Copy link
Contributor

...returning NULL. This was causing a crash few lines later.
This was described in detail here: #4801 (comment)

Note that rcore_web.c has a very similar code path, but unlike in rcore_desktop_glfw.c, WEB version checks for null in all branches before doing anything.

Tested on native x86_64 Linux, and on x86_64 MacOS 13.6.9 running in VM. With GLFW in both cases.

Partially-fixes: #4801

...returning NULL. This was causing a crash few lines later.

Refs: raysan5#4801 (comment)
Partially-fixes: raysan5#4801
@raysan5 raysan5 merged commit a20d9de into raysan5:master Mar 1, 2025
15 checks passed
@raysan5
Copy link
Owner

raysan5 commented Mar 1, 2025

@sleeptightAnsiC looks good, thanks for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants