Skip to content

Commit

Permalink
Adapter: Return if cannot create Vulkan instance
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Mar 25, 2024
1 parent cffa283 commit 6facc3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion SamTFE/Sources/Engine/Graphics/Adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ void CGfxLibrary::InitAPIs(void)
VkResult r = vkCreateInstance(&instanceInfo, nullptr, &tempVkInstance);
if (r != VK_SUCCESS)
{
ASSERT(FALSE);
CPrintF("Cannot create Vulkan instance.\n");
return;;
}

// get all physical devices
Expand Down
3 changes: 2 additions & 1 deletion SamTSE/Sources/Engine/Graphics/Adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,8 @@ void CGfxLibrary::InitAPIs(void)
VkResult r = vkCreateInstance(&instanceInfo, nullptr, &tempVkInstance);
if (r != VK_SUCCESS)
{
ASSERT(FALSE);
CPrintF("Cannot create Vulkan instance.\n");
return;;
}

// get all physical devices
Expand Down

0 comments on commit 6facc3b

Please sign in to comment.