ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.03k stars 1.27k forks source link

Shared OpenGL Context (OpenGL error 1282 Invalid operation) #654

Open lisphacker opened 6 years ago

lisphacker commented 6 years ago

Hi

We are trying to add VR support to an OpenGL-based 3D application written in Java (using the wrapper written in Kotlin (https://github.com/kotlin-graphics/openvr)). We were able to get this to work when they each had separate OpenGL contexts. However, then the VR rendering code has an OpenGL context that shares objects setup from another context, we get an error during submission (IVRCompositor.submit()). Is this a known issue? Is there a way of fixing this or working around it?

Cheers Gautham Ganapathy

lisphacker commented 6 years ago

I also tried printing out the error returned by the submit call. The first pair of calls (for each eye) to submit showed error 101 (Installation Corrupt), but no OpenGL errors, while the subsequent calls returned 105 (Interface Not Found), along with OpenGL error 1282 (Invalid operation)

lisphacker commented 6 years ago

Sorry, I was looking at the 105 error in the wrong place. It was actually 'texture in unsupported format'. However, the texture I am submitting is and RGBA8 texture, so I'm not sure what's causing this issue.