mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-08 02:13:29 +00:00
introduce VULKAN_NO_STRING_HELPER env variable for make, in case the user doesn't have vk_enum_string_helper.h (or it doesn't work idk)
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@125 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -32,8 +32,7 @@
|
||||
#include <vulkan/vulkan_win32.h>
|
||||
#endif
|
||||
|
||||
// MinGW's copy of vulkan string helpers is just straight up busted.
|
||||
#ifndef __MINGW32__
|
||||
#ifndef HAS_VK_ENUM_STRING_HELPER
|
||||
#include <vulkan/vk_enum_string_helper.h>
|
||||
#endif
|
||||
|
||||
@@ -60,7 +59,7 @@ MwVulkanConfig vulkan_config = {
|
||||
#endif
|
||||
|
||||
// convienence macro for handling vulkan errors
|
||||
#ifndef __MINGW32__
|
||||
#ifndef HAS_VK_ENUM_STRING_HELPER
|
||||
#define VK_CMD(func) \
|
||||
vk_res = func; \
|
||||
if(vk_res != VK_SUCCESS) { \
|
||||
|
||||
Reference in New Issue
Block a user