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

osx: Fix calling [window center] before setting gl_context #530

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

birhburh
Copy link
Contributor

For

cargo +nightly run --example=quad                  

I recieved

    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/examples/quad`

thread 'main' panicked at src/native/macos.rs:304:13:
null pointer dereference occurred
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
zsh: abort      cargo +nightly run --example=quad

Also decided to move some functions below gl_context initialization just to be sure that everything is inited before creation of view and window
This probably could fix some other osx bugs with mouse input


Why I needed nightly compiler for miniquad is because I tried to use glam with simd feature, but it is probably not important

@not-fl3 not-fl3 merged commit 08752fa into not-fl3:master Feb 12, 2025
11 checks passed
@not-fl3
Copy link
Owner

not-fl3 commented Feb 12, 2025

Thanks for PR!

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