Make the vk_rayquery cvar a bit more robust

This commit is contained in:
Magnus Norddahl 2024-01-21 14:25:08 +01:00
commit e7e89fce09
6 changed files with 12 additions and 17 deletions

View file

@ -11,8 +11,6 @@
#define USE_DRAWINDIRECT
extern bool vk_rayquery;
static int lastSurfaceCount;
static glcycle_t lightmapRaytraceLast;
@ -35,7 +33,7 @@ CVAR(Bool, lm_blur, true, 0);
VkLightmapper::VkLightmapper(VulkanRenderDevice* fb) : fb(fb)
{
useRayQuery = vk_rayquery && fb->GetDevice()->SupportsExtension(VK_KHR_RAY_QUERY_EXTENSION_NAME) && fb->GetDevice()->PhysicalDevice.Features.RayQuery.rayQuery;
useRayQuery = fb->IsRayQueryEnabled();
templightlist.Resize(128);