mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
vulkan: fix macro variables
This commit is contained in:
parent
ff4a314022
commit
f1dc3d9728
1 changed files with 5 additions and 5 deletions
|
|
@ -90,11 +90,11 @@ static int vkresult_to_errno(VkResult result)
|
|||
|
||||
#define VK_CHECK_RESULT(f) \
|
||||
{ \
|
||||
VkResult result = (f); \
|
||||
int res = -vkresult_to_errno(result); \
|
||||
if (result != VK_SUCCESS) { \
|
||||
spa_log_debug(s->log, "error: %d (%s)", result, spa_strerror(res)); \
|
||||
return res; \
|
||||
VkResult _result = (f); \
|
||||
int _res = -vkresult_to_errno(_result); \
|
||||
if (_result != VK_SUCCESS) { \
|
||||
spa_log_debug(s->log, "error: %d (%s)", _result, spa_strerror(_res)); \
|
||||
return _res; \
|
||||
} \
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue