aboutsummaryrefslogtreecommitdiff
path: root/demos/smoke/ShellWin32.cpp
diff options
context:
space:
mode:
authorDustin Graves <dustin@lunarg.com>2016-04-06 10:16:05 -0600
committerDustin Graves <dustin@lunarg.com>2016-04-06 12:03:51 -0600
commit8cfaf1beebcfc3bfcd26d060257b3339df25972d (patch)
treedbcec476c19c019b95e7d640fa64d2bfc8020e45 /demos/smoke/ShellWin32.cpp
parent6eae0eb4a02dfb28c5e80c8f369f8defc648f9b7 (diff)
downloadusermoji-8cfaf1beebcfc3bfcd26d060257b3339df25972d.tar.xz
demos/tests: Fix MSVS type warnings
Fixes the following MSVS warnings: - C4800 - forcing value to bool 'true' or 'false' - C4244 - conversion from type1 to type2, possible loss of data - C4267 - conversion from size_t to type, possible loss of data Change-Id: I78576c48c5d42e4c9116a83c5f4a4f4a5035e0fc
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)