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

Just a heads up on opengl pixelformat stuff #4

Closed
joekarl opened this issue Jan 4, 2015 · 2 comments
Closed

Just a heads up on opengl pixelformat stuff #4

joekarl opened this issue Jan 4, 2015 · 2 comments

Comments

@joekarl
Copy link

joekarl commented Jan 4, 2015

So I had someone run into this when they were running the swift platform code on an older macbook air and got a failure when trying to init the display link.

Specifically it seems that the user's macbook air didn't support double buffering (which is weird because basically all macs support double buffering via opengl, but that's what the machine reported :/ ).

I made the following changes to support him and add some fallback for machines without double buffer support. joekarl/swift_handmade_hero@100f658?diff=unified

Also needed to add a glFlush() inside of the display link callback to handle flushing for single buffer devices.

So just a heads up in case you run into anything like that...

@itfrombit
Copy link
Owner

Thanks for the head's up. Nice find!

@itfrombit
Copy link
Owner

Finally closing this one. The OpenGL version requirements have been updated, the event loop no longer uses display link, and it is probably safe now to exclude 10.7.5 from the list of supported versions. :)

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

No branches or pull requests

2 participants