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

Fix SDL failing to initialize on desktop (C4554) #678

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

nspitko
Copy link
Contributor

@nspitko nspitko commented Apr 19, 2024

This is an operator precedence bug introduced in 1d54fc5, and due to changes in defaults prevents SDL from working on PC.

As written, with C++ operator precedence, this check does not do what you'd expect and SDL_WINDOW_OPENGL never gets set. This change simply adds missing parenthesis to force the bitwise ops to resolve before equality checks.

This is a correctly identified operator precedence bug, and due to changes in defaults, prevents SDL from working on PC
@ncannasse ncannasse merged commit e65f116 into HaxeFoundation:master Apr 21, 2024
9 checks passed
@nspitko nspitko deleted the sdl-precedence-fix branch April 21, 2024 19:00
GlassySundew pushed a commit to GlassySundew/hashlink that referenced this pull request May 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants