Fix Android build for mips64: NULL -> VK_NULL_HANDLE
authorIan Elliott <ianelliott@google.com>
Wed, 3 Aug 2016 20:57:11 +0000 (14:57 -0600)
committerIan Elliott <ianelliott@google.com>
Wed, 3 Aug 2016 20:57:11 +0000 (14:57 -0600)
This should affect other architectures as well.  A handle can't be assigned to
NULL (may get 32-64 type issues).  Must set a Vulkan handle to VK_NULL_HANDLE.

demos/cube.c

index 4529641..8f555e6 100644 (file)
@@ -705,7 +705,7 @@ static void demo_draw(struct demo *demo) {
     // that the image won't be rendered to until the presentation
     // engine has fully released ownership to the application, and it is
     // okay to render to the image.
-    VkFence nullFence = NULL;
+    VkFence nullFence = VK_NULL_HANDLE;
     VkPipelineStageFlags pipe_stage_flags =
         VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
     VkSubmitInfo submit_info = {