-
Notifications
You must be signed in to change notification settings - Fork 225
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
'invalid operation' error on Windows with WGL #169
Comments
@monsieurgustav any ideas? does this work for you? |
I got the same issue this morning... TBH, I'm not familiar at all with pyrender. The PR is just the same code for WGL than it is for GLX. It seems like |
More generally, I don't think a renderer should call make_current/make_uncurrent every frame. |
Yes, single image works fine because Why did you need to Can we figure out if a |
it was introduced in db1f6fd seemingly for |
I didn't need this call to wglMakeCurrent. (again, it's just reflecting the GLX variant) The main point was to remove a 'GLX not found' exception on Windows. The only reason I ever found make a context not current anymore was in a multi-thread environment (a context cannot be current in several threads at a time) |
This can be solved with the try/except block. Any objections to reverting your commit a1b4616? |
No objection if you add the try/except instead, I let you do it though. |
Hi All, Sorry, didn't have a windows PC to test this on. I merged and deployed a new version. |
Hi,
I'm facing a new kind of error after the merge of #167
these lines are to blame:
https://github.com/monsieurgustav/pyrender/blob/10ada1d4f895a4e9272299347def675ec4ba4407/pyrender/platforms/pyglet_platform.py#L57-L58
And the error is:
Interestingly enough, this happens the 2nd time i call the offscreen renderer, whereas the first time it renders correctly. Which means that the
wglMakeCurrent
call is misplaced.Any ideas what went wrong when starting to use WGL?
The text was updated successfully, but these errors were encountered: