aboutsummaryrefslogtreecommitdiff
path: root/demos/smoke/ShellWin32.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'demos/smoke/ShellWin32.cpp')
-rw-r--r--demos/smoke/ShellWin32.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/smoke/ShellWin32.cpp b/demos/smoke/ShellWin32.cpp
index 1a1a844c..4f205a92 100644
--- a/demos/smoke/ShellWin32.cpp
+++ b/demos/smoke/ShellWin32.cpp
@@ -140,7 +140,8 @@ PFN_vkGetInstanceProcAddr ShellWin32::load_vk()
bool ShellWin32::can_present(VkPhysicalDevice phy, uint32_t queue_family)
{
- return vk::GetPhysicalDeviceWin32PresentationSupportKHR(phy, queue_family);
+ return vk::GetPhysicalDeviceWin32PresentationSupportKHR(
+ phy, queue_family) == VK_TRUE;
}
VkSurfaceKHR ShellWin32::create_surface(VkInstance instance)