-
Notifications
You must be signed in to change notification settings - Fork 45
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
[BUG] Cannot successfully use OpenXR with OpenGL #546
Comments
There's this bug #421 In https://gitlab.freedesktop.org/monado/demos/openxr-simple-example I worked around it. godot_openxr does too. |
@ChristophHaag Thanks alot |
What version of SteamVR are you using? We are in the process of pushing a fix for newer SteamVR. |
Im on beta channel so currently running 1.25.1 |
@farmboy0, our fix should be in 1.25 (It was a bug from 1.16-1.24). We are now doing the following: m_glxDisplayToRestore = glXGetCurrentDisplay();
m_glxContextToRestore = glXGetCurrentContext();
m_glxDrawableToRestore = glXGetCurrentDrawable();
if( m_glxDisplayToRestore != m_xDisplay || m_glxDrawable != m_glxDrawableToRestore || m_glxContextToRestore != m_glxContext )
glXMakeCurrent( m_xDisplay, m_glxDrawable, m_glxContext ); Can you confirm that you still need to perform the |
I can confirm that
|
fyi this is normal, the hello_xr desktop window doesn't have any output |
I consider this issue to be resolved, I have no problems anymore using OpenGL with OpenXR |
Describe the bug
I tried 3 different OpenGL+OpenXR samples that all fail to correctly run.
The samples tried are the following:
The first 2 listed are suffering from the fact that they are not looking for
GL_SRGB8 or GL_SRGB8_ALPHA8 which are the only xolor formats
SteamVR's EnumerateSwapchainFormats will return.
But that it is easily fixed but will not make the samples run completely either.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the samples to run successfully or at least produce errors why they cant.
System Information (please complete the following information):
nvidia-settings
orvulkaninfo | grep driverInfo
: Mesa 22.2.2Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
xrclient_hello_xr.txt
xrclient_java.txt
xrclient_ugly_gl.txt
If there are OpenGL samples that can successfully run I would appreciate it a lot if you could provide them.
Note: Commenters who are also experiencing this issue are encouraged to include the "System Information" section in their replies.
The text was updated successfully, but these errors were encountered: