-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
glx: Support making a context current without surface #1711
Conversation
I presume this comes from the suggestion at #1710 (comment)? |
@MarijnS95 Yes, indeed. Didn't mean to open the PR just yet, hence the stump form of the PR request, but I'd be happy to see it through properly. |
@mbernat no worries, just figured we should update the title to include the Happy that you included the documentation that clarifies that this is allowed, because Like the rest of |
@MarijnS95 Let me know whether the validation I added is along the lines you had in mind. I also implemented the API for WGL elsewhere but the validation is harder to do because its |
8fea3a2
to
bc38760
Compare
I have fixed the validation, the previous commit was using the GLX version stored in It's a bit hairy now since the version is only computed in the middle of the context creation and I needed to get the information about surfaceless support out from there; it would be better to compute the version much earlier. Let me know and I'd be happy to try refactoring it. Other than that, this should be ready for review. @MarijnS95 @kchibisov please take a look whenever it's convenient for you 🙏 |
I've just successfully tested this one (in a proprietary application). |
Just for the reference, querying the context version afterwards is not really possible, and it's just the same as it was passed to the API. |
This mirrors the EGL behavior and follows in footsteps of #1710.
This change should be valid according to https://registry.khronos.org/OpenGL/extensions/ARB/GLX_ARB_create_context.txt (emphasis mine)
CHANGELOG.md
if knowledge of this change could be valuable to users