Skip to content

Commit

Permalink
gdk/gdkvulkancontext.c: Fix 32-bit Windows builds
Browse files Browse the repository at this point in the history
The callback function that is used by VkDebugReportCallbackCreateInfoEXT
is decorated with VKAPI_CALL (which is __stdcall on Windows).  This is
not detected on x64 Windows as __stdcall is not really meaningful on x64
Windows, and VKAPI_CALL expands to nothing on non-Windows.

As __stdcall functions are treated differently on 32-bit Windows, the
32-bit compiler does require that the function be declared as __stdcall
so that things will compile, link and run properly.

https://bugzilla.gnome.org/show_bug.cgi?id-773299
  • Loading branch information
fanc999-1 committed Jun 5, 2017
1 parent 85bba77 commit 77e1d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdk/gdkvulkancontext.c
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ gdk_display_create_vulkan_device (GdkDisplay *display,
return FALSE;
}

static VkBool32
static VkBool32 VKAPI_CALL
gdk_vulkan_debug_report (VkDebugReportFlagsEXT flags,
VkDebugReportObjectTypeEXT objectType,
uint64_t object,
Expand Down

0 comments on commit 77e1d0c

Please sign in to comment.