summaryrefslogtreecommitdiffstats
path: root/tools/gfx/vulkan/render-vk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gfx/vulkan/render-vk.cpp')
-rw-r--r--tools/gfx/vulkan/render-vk.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp
index 64263887d..bc0271aa6 100644
--- a/tools/gfx/vulkan/render-vk.cpp
+++ b/tools/gfx/vulkan/render-vk.cpp
@@ -5612,9 +5612,11 @@ SlangResult VKDevice::initialize(const Desc& desc)
SlangResult initDeviceResult = SLANG_OK;
for (int forceSoftware = 0; forceSoftware <= 1; forceSoftware++)
{
- if (m_module.init(forceSoftware != 0) != SLANG_OK)
+ initDeviceResult = m_module.init(forceSoftware != 0);
+ if (initDeviceResult != SLANG_OK)
continue;
- if (m_api.initGlobalProcs(m_module) != SLANG_OK)
+ initDeviceResult = m_api.initGlobalProcs(m_module);
+ if (initDeviceResult != SLANG_OK)
continue;
descriptorSetAllocator.m_api = &m_api;
initDeviceResult = initVulkanInstanceAndDevice(ENABLE_VALIDATION_LAYER != 0);