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

[macos] find latest GL version #963

Merged
merged 1 commit into from
Dec 18, 2017
Merged

Conversation

kvark
Copy link
Contributor

@kvark kvark commented Dec 15, 2017

Fixes #781

When Latest non-compatibility version is requested, try 4.1 and 3.2 explicitly instead of relying on software versions.
Also pass in the HW accelerated and double-buffer flags according to the given options.
Note: according to the docs, not passing the double-buffer flag equals to requesting single buffering.

@kvark kvark force-pushed the mac-hw-accel branch 3 times, most recently from 64a0712 to 1b0ca01 Compare December 15, 2017 20:39
@kvark
Copy link
Contributor Author

kvark commented Dec 16, 2017

The only non-mac specific change is with the headless context parameters, and it's also the one I'm least confident about. Previously, mac platform didn't ever pass the accelerated pixel format requirement, which resulted, so headless contexts worked. Now that I made it respect the acceleration flag, I had to avoid the default pixel requirements for the headless mode.

This is confusing, since I don't see headless context having clear semantics (hello, pure contexts of #942).

Anyhow, this PR is ready for review now, @tomaka . It is somewhat important since currently any Mac not supporting GL 4.1 switches to software rendering.

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

Successfully merging this pull request may close these issues.

2 participants