mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-14 07:38:24 +02:00
GPU: Fix backwards LogError and SetError calls
This commit is contained in:
@@ -1214,18 +1214,18 @@ static inline void LogVulkanResultAsError(
|
||||
}
|
||||
}
|
||||
|
||||
#define ERROR_LOG_RETURN(res, fn, ret) \
|
||||
if (res != VK_SUCCESS) { \
|
||||
SDL_SetError("%s %s", #fn, VkErrorMessages(res)); \
|
||||
return ret; \
|
||||
}
|
||||
|
||||
#define ERROR_SET_RETURN(res, fn, ret) \
|
||||
#define ERROR_LOG_RETURN(res, fn, ret) \
|
||||
if (res != VK_SUCCESS) { \
|
||||
SDL_LogError(SDL_LOG_CATEGORY_GPU, "%s %s", #fn, VkErrorMessages(res)); \
|
||||
return ret; \
|
||||
}
|
||||
|
||||
#define ERROR_SET_RETURN(res, fn, ret) \
|
||||
if (res != VK_SUCCESS) { \
|
||||
SDL_SetError("%s %s", #fn, VkErrorMessages(res)); \
|
||||
return ret; \
|
||||
}
|
||||
|
||||
// Utility
|
||||
|
||||
static inline VkPolygonMode SDLToVK_PolygonMode(
|
||||
|
||||
Reference in New Issue
Block a user