mirror of
https://github.com/ZDoom/ZDRay.git
synced 2025-02-09 07:41:03 +00:00
Fix missing ShInitialize call
This commit is contained in:
parent
d88c2ef41c
commit
44b1d90968
1 changed files with 3 additions and 0 deletions
|
@ -21,6 +21,7 @@ VulkanDevice::VulkanDevice(int vk_device, bool vk_debug) : vk_device(vk_device),
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
ShInitialize();
|
||||||
initVolk();
|
initVolk();
|
||||||
createInstance();
|
createInstance();
|
||||||
selectPhysicalDevice();
|
selectPhysicalDevice();
|
||||||
|
@ -537,6 +538,8 @@ void VulkanDevice::releaseResources()
|
||||||
if (instance)
|
if (instance)
|
||||||
vkDestroyInstance(instance, nullptr);
|
vkDestroyInstance(instance, nullptr);
|
||||||
instance = VK_NULL_HANDLE;
|
instance = VK_NULL_HANDLE;
|
||||||
|
|
||||||
|
ShFinalize();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t VulkanDevice::findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties)
|
uint32_t VulkanDevice::findMemoryType(uint32_t typeFilter, VkMemoryPropertyFlags properties)
|
||||||
|
|
Loading…
Reference in a new issue