aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTony Barbour <tony@LunarG.com>2015-09-16 15:01:32 -0600
committerTony Barbour <tony@LunarG.com>2015-09-16 15:01:32 -0600
commit9fd6d35d8a851b48c1218877a1067bc980b6a1ca (patch)
tree402ba35787021decbe144b3498ccbda1b0d789e4
parent01ca9089527dd0c0167d0a84f6606e7f3f96f17a (diff)
downloadusermoji-9fd6d35d8a851b48c1218877a1067bc980b6a1ca.tar.xz
demos: trivial fixes for cube problems
-rw-r--r--demos/cube.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 3244abdd..9edb8deb 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -719,7 +719,7 @@ static void demo_prepare_buffers(struct demo *demo)
}
#endif // WORK_AROUND_CODE
- VkSurfaceTransformFlagBitsKHR preTransform;
+ VkSurfaceTransformFlagsKHR preTransform;
if (surfProperties.supportedTransforms & VK_SURFACE_TRANSFORM_NONE_BIT_KHR) {
preTransform = VK_SURFACE_TRANSFORM_NONE_KHR;
} else {
@@ -2450,7 +2450,6 @@ static void demo_init_vk(struct demo *demo)
GET_DEVICE_PROC_ADDR(demo->device, GetSurfaceFormatsKHR);
GET_DEVICE_PROC_ADDR(demo->device, GetSurfacePresentModesKHR);
GET_DEVICE_PROC_ADDR(demo->device, CreateSwapchainKHR);
- GET_DEVICE_PROC_ADDR(demo->device, CreateSwapchainKHR);
GET_DEVICE_PROC_ADDR(demo->device, DestroySwapchainKHR);
GET_DEVICE_PROC_ADDR(demo->device, GetSwapchainImagesKHR);
GET_DEVICE_PROC_ADDR(demo->device, AcquireNextImageKHR);