vulkan: use the provided VKAPI_ATTR for the debug callback
authorMatthew Waters <matthew@centricular.com>
Wed, 16 Oct 2019 06:27:16 +0000 (17:27 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 7 Nov 2019 20:01:57 +0000 (20:01 +0000)
Ensures that we get the calling convention correct for the platform we
are using.

gst-libs/gst/vulkan/gstvkinstance.c

index 4becf3d..faeb4ae 100644 (file)
@@ -142,7 +142,7 @@ gst_vulkan_instance_finalize (GObject * object)
   G_OBJECT_CLASS (parent_class)->finalize (object);
 }
 
-static VkBool32
+VKAPI_ATTR static VkBool32
 _gst_vk_debug_callback (VkDebugReportFlagsEXT msgFlags,
     VkDebugReportObjectTypeEXT objType, uint64_t srcObject, size_t location,
     int32_t msgCode, const char *pLayerPrefix, const char *pMsg,