From 66e7336b624015ae8590eeed16fcbb0da1c36f9b Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Fri, 12 Jul 2019 13:37:30 +0900 Subject: [PATCH] Initialize device extension checks early They need to be initialized before attempting to load the function pointers. --- libs/video/renderer/vulkan/device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/video/renderer/vulkan/device.c b/libs/video/renderer/vulkan/device.c index 1579c0633..36b81b025 100644 --- a/libs/video/renderer/vulkan/device.c +++ b/libs/video/renderer/vulkan/device.c @@ -195,13 +195,13 @@ QFV_CreateDevice (vulkan_ctx_t *ctx, const char **extensions) if (ifunc->vkCreateDevice (physdev, &dCreateInfo, 0, &device->dev) == VK_SUCCESS) { qfv_devfuncs_t *dfunc = device->funcs; + device->enabled_extensions = new_strset (ext); + device->extension_enabled = device_extension_enabled; device->physDev = physdev; load_device_funcs (inst, device); device->queueFamily = family; dfunc->vkGetDeviceQueue (device->dev, family, 0, &device->queue); - device->enabled_extensions = new_strset (ext); - device->extension_enabled = device_extension_enabled; ctx->device = device; return device; }