aboutsummaryrefslogtreecommitdiff
path: root/cube/cube.c
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.c
parent3c1ea4cc630d09c0da023946d82248cf5e34175c (diff)
downloadusermoji-a7825740f31682cbd6ad177fdfcd506b32f76370.tar.xz
vkcube: portabilty extension as text so it builds on all platforms
Diffstat (limited to 'cube/cube.c')
-rw-r--r--cube/cube.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/cube/cube.c b/cube/cube.c
index ed503392..9516fca1 100644
--- a/cube/cube.c
+++ b/cube/cube.c
@@ -25,7 +25,6 @@
* Author: Bill Hollings <bill.hollings@brenwill.com>
*/
-#define VK_ENABLE_BETA_EXTENSIONS
#define _GNU_SOURCE
#include <stdio.h>
#include <stdarg.h>
@@ -3312,8 +3311,8 @@ static void demo_init_vk(struct demo *demo) {
swapchainExtFound = 1;
demo->extension_names[demo->enabled_extension_count++] = VK_KHR_SWAPCHAIN_EXTENSION_NAME;
}
- if (!strcmp(VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME, device_extensions[i].extensionName)) {
- demo->extension_names[demo->enabled_extension_count++] = VK_KHR_PORTABILITY_SUBSET_EXTENSION_NAME;
+ if (!strcmp("VK_KHR_portability_subset", device_extensions[i].extensionName)) {
+ demo->extension_names[demo->enabled_extension_count++] = "VK_KHR_portability_subset";
}
assert(demo->enabled_extension_count < 64);
}