aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.cpp
diff options
context:
space:
mode:
authorRichard S. Wright Jr <richard@lunarg.com>2021-01-06 16:02:12 -0500
committerRichard S. Wright Jr <58573781+richard-lunarg@users.noreply.github.com>2021-01-06 16:44:29 -0500
commita7825740f31682cbd6ad177fdfcd506b32f76370 (patch)
treed5242c68f5db95609177a4a69cf1ee242f671bf1 /cube/cube.cpp
parent3c1ea4cc630d09c0da023946d82248cf5e34175c (diff)
downloadusermoji-a7825740f31682cbd6ad177fdfcd506b32f76370.tar.xz
vkcube: portabilty extension as text so it builds on all platforms
Diffstat (limited to 'cube/cube.cpp')
-rw-r--r--cube/cube.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cube/cube.cpp b/cube/cube.cpp
index 06baecf5..252f880b 100644
--- a/cube/cube.cpp
+++ b/cube/cube.cpp
@@ -17,7 +17,7 @@
*
* Author: Jeremy Hayes <jeremy@lunarg.com>
*/
-#define VK_ENABLE_BETA_EXTENSIONS
+
#if defined(VK_USE_PLATFORM_XLIB_KHR) || defined(VK_USE_PLATFORM_XCB_KHR)
#include <X11/Xutil.h>
#elif defined(VK_USE_PLATFORM_WAYLAND_KHR)
@@ -1286,8 +1286,8 @@ void Demo::init_vk() {
swapchainExtFound = 1;
extension_names[enabled_extension_count++] = VK_KHR_SWAPCHAIN_EXTENSION_NAME;
}
- if (!strcmp(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME, device_extensions[i].extensionName)) {
- extension_names[enabled_extension_count++] = VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME;
+ if (!strcmp("VK_KHR_portability_subset", device_extensions[i].extensionName)) {
+ extension_names[enabled_extension_count++] = "VK_KHR_portability_subset";
}
assert(enabled_extension_count < 64);
}