summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2016-10-01 10:40:44 +1000
committerStenzek <stenzek@gmail.com>2016-10-03 19:11:47 +1000
commit1286c309e3a7b9a7a28b6128e68ab06f1502864c (patch)
treeb50d1ace78ab1c97a7077d57ab576867987740f6 /Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
parentd139659ea2a12fddb12b9fd9ead7f16bae24dea0 (diff)
Vulkan: Fix compilation on 32-bit targets
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/VulkanContext.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/VulkanContext.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
index ef2e6e1fb3..7696568ef4 100644
--- a/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
+++ b/Source/Core/VideoBackends/Vulkan/VulkanContext.cpp
@@ -526,7 +526,8 @@ bool VulkanContext::CreateDevice(VkSurfaceKHR surface, bool enable_validation_la
device_info.pQueueCreateInfos = &queue_info;
ExtensionList enabled_extensions;
- if (!SelectDeviceExtensions(&enabled_extensions, (surface != nullptr), enable_validation_layer))
+ if (!SelectDeviceExtensions(&enabled_extensions, (surface != VK_NULL_HANDLE),
+ enable_validation_layer))
return false;
device_info.enabledLayerCount = 0;