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

use wgl on Windows #167

Merged
merged 2 commits into from
Feb 17, 2021
Merged

use wgl on Windows #167

merged 2 commits into from
Feb 17, 2021

Conversation

monsieurgustav
Copy link
Contributor

Offscreen rendering fails on Windows:

File "C:\Users\GuillaumeDev\anaconda3\envs\yokai\lib\site-packages\pyrender\offscreen.py", line 113, in render
self._platform.make_uncurrent()
File "C:\Users\GuillaumeDev\anaconda3\envs\yokai\lib\site-packages\pyrender\platforms\pyglet_platform.py", line 54, in make_uncurrent
pyglet.gl.xlib.glx.glXMakeContextCurrent(self._window.context.x_display, 0, 0, None)
AttributeError: module 'pyglet.gl' has no attribute 'xlib'

This PR use xlib if it actually exists and may fallback to wgl if found.

@mmatl mmatl merged commit a1b4616 into mmatl:master Feb 17, 2021
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