aboutsummaryrefslogtreecommitdiff
path: root/demos/cube.c
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-01-13 13:47:16 -0700
committerMark Young <marky@lunarg.com>2016-01-25 11:01:48 -0700
commitcda9d8450dd0d15f5f017a47aa3ebb778ea9a2da (patch)
tree31b8ed27f32332ab4bb1203e1eb1f5969a5a75bd /demos/cube.c
parent0a6dd5230a9e5d0c9a9039c204f0ebb317accd60 (diff)
downloadusermoji-cda9d8450dd0d15f5f017a47aa3ebb778ea9a2da.tar.xz
Win32: Get 32-bit Windows build working
Also includes changes to allow simultaneous 32-bit and 64-bit Windows builds.
Diffstat (limited to 'demos/cube.c')
-rw-r--r--demos/cube.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/cube.c b/demos/cube.c
index 5de15a6b..0a706a0c 100644
--- a/demos/cube.c
+++ b/demos/cube.c
@@ -255,7 +255,7 @@ void dumpVec4(const char *note, vec4 vector)
fflush(stdout);
}
-VkBool32 dbgFunc(
+VKAPI_ATTR VkBool32 VKAPI_CALL dbgFunc(
VkFlags msgFlags,
VkDebugReportObjectTypeEXT objType,
uint64_t srcObject,
@@ -686,7 +686,7 @@ static void demo_draw(struct demo *demo)
err = demo->fpAcquireNextImageKHR(demo->device, demo->swapchain,
UINT64_MAX,
presentCompleteSemaphore,
- NULL,// TODO: Show use of fence
+ (VkFence)0,// TODO: Show use of fence
&demo->current_buffer);
if (err == VK_ERROR_OUT_OF_DATE_KHR) {
// demo->swapchain is out of date (e.g. the window was resized) and