libcg / grvk

Vulkan-based Mantle API implementation
https://en.wikipedia.org/wiki/Mantle_(API)
zlib License
224 stars 14 forks source link

Add GR_STDCALL to all mantle calls for proper 32-bit support #24

Closed dougvj closed 3 years ago

dougvj commented 3 years ago

Running 32-bit programs with mantle support tended to crash with some catastrophic stack corruption. After some investigation, I realized the problem was mismatched calling conventions. This patch defines GR_STDCALL to __stdcall if _WIN32, otherwise it's defined as blank. This lets CivBE successfully initialize (Per #16)