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 glXMakeCurrent command in your app using the current beta?
I can confirm that
hello_xr works partially, it renders to the headset but the desktop window shows only artifacts.
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
Nothing extracted yet.
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-settingsorvulkaninfo | 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.