Update ZVulkan, rename vk_raytrace to gl_light_raytrace and support turning it on and off without a restart

This commit is contained in:
Magnus Norddahl 2023-01-14 03:47:12 +01:00
commit 7eb9053e30
8 changed files with 26 additions and 20 deletions

View file

@ -55,7 +55,7 @@ void VkRaytrace::SetLevelMesh(hwrenderer::LevelMesh* mesh)
{
Reset();
Mesh = mesh;
if (fb->RaytracingEnabled())
if (fb->device->SupportsDeviceExtension(VK_KHR_RAY_QUERY_EXTENSION_NAME))
{
CreateVulkanObjects();
}