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

Improve WGL shared context creation error paths #73

Merged
merged 1 commit into from
Oct 20, 2016

Conversation

MortimerGoro
Copy link
Contributor

The result of the first wglMakeCurrent call is handled through the channel.

Also found a new error path. If the context creation itself fails we have always to restore the shared context's wglMakeCurrent values.

If the last wglMakeCurrent fails (very unlikely) it's not really a GLContext initialization problem, but we might cause some dirty status in the main thread . Currently it logs an error. Maybe panic?

@MortimerGoro MortimerGoro changed the title Improve WGL shared context creation error paths. Fixes issue ##72 Improve WGL shared context creation error paths. Fixes issue #72 Oct 20, 2016
@MortimerGoro MortimerGoro changed the title Improve WGL shared context creation error paths. Fixes issue #72 Improve WGL shared context creation error paths Oct 20, 2016
@emilio
Copy link
Member

emilio commented Oct 20, 2016

Looks great, thanks!

@emilio emilio merged commit 71f61d3 into servo:master Oct 20, 2016
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