mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-07 16:31:32 +00:00
Initialize device extension checks early
They need to be initialized before attempting to load the function pointers.
This commit is contained in:
parent
75f19f7243
commit
66e7336b62
1 changed files with 2 additions and 2 deletions
|
@ -195,13 +195,13 @@ QFV_CreateDevice (vulkan_ctx_t *ctx, const char **extensions)
|
||||||
if (ifunc->vkCreateDevice (physdev, &dCreateInfo, 0,
|
if (ifunc->vkCreateDevice (physdev, &dCreateInfo, 0,
|
||||||
&device->dev) == VK_SUCCESS) {
|
&device->dev) == VK_SUCCESS) {
|
||||||
qfv_devfuncs_t *dfunc = device->funcs;
|
qfv_devfuncs_t *dfunc = device->funcs;
|
||||||
|
device->enabled_extensions = new_strset (ext);
|
||||||
|
device->extension_enabled = device_extension_enabled;
|
||||||
|
|
||||||
device->physDev = physdev;
|
device->physDev = physdev;
|
||||||
load_device_funcs (inst, device);
|
load_device_funcs (inst, device);
|
||||||
device->queueFamily = family;
|
device->queueFamily = family;
|
||||||
dfunc->vkGetDeviceQueue (device->dev, family, 0, &device->queue);
|
dfunc->vkGetDeviceQueue (device->dev, family, 0, &device->queue);
|
||||||
device->enabled_extensions = new_strset (ext);
|
|
||||||
device->extension_enabled = device_extension_enabled;
|
|
||||||
ctx->device = device;
|
ctx->device = device;
|
||||||
return device;
|
return device;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue