Skip to content

Commit

Permalink
__stdcall call convention is needed on x86 Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
madebr committed Feb 2, 2025
1 parent a1bc850 commit 7207bab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SDL_shadercross.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ struct IDxcUtils
/* *INDENT-ON* */ // clang-format on

/* DXCompiler */
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES)
#if defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES) || defined(SDL_PLATFORM_WINDOWS)
extern HRESULT __stdcall DxcCreateInstance(REFCLSID rclsid, REFIID riid, LPVOID* ppv);
#else
extern HRESULT DxcCreateInstance(REFCLSID rclsid, REFIID riid, LPVOID *ppv);
Expand Down

0 comments on commit 7207bab

Please sign in to comment.