Skip to content

Commit

Permalink
OpenVRHMD: set initialized to false before shutting down VR to preven…
Browse files Browse the repository at this point in the history
…t seg faults
  • Loading branch information
smlpt committed Nov 18, 2024
1 parent 9ed488d commit 95e4a8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/graphics/scenery/controls/OpenVRHMD.kt
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ open class OpenVRHMD(val seated: Boolean = false, val useCompositor: Boolean = t
* Runs the OpenVR shutdown hooks
*/
fun close() {
initialized = false
VR_ShutdownInternal()
}

Expand Down

0 comments on commit 95e4a8d

Please sign in to comment.