mirror of
https://github.com/InstanceBrick/nightcap.git
synced 2026-10-27 09:01:17 +01:00
SteamVR (vrclient.so) binds its Vulkan renderer to the lifetime of the XrInstance. When Roblox destroys the LuaApp Vulkan device and creates a second VkInstance/VkDevice for UGC experiences, reusing the original XrInstance causes SteamVR to dereference freed device handles in xrEndFrame. Tear down and recreate the XrInstance whenever a new guest Vulkan instance is initialized, resetting session state, spaces, and controller actions.