[Vulkan] Enforce semicolons on VK_SAFE_DESTROY
This commit is contained in:
parent
190108dab6
commit
45ba1d0bf3
|
@ -26,10 +26,15 @@ namespace ui {
|
||||||
namespace vulkan {
|
namespace vulkan {
|
||||||
|
|
||||||
#define VK_SAFE_DESTROY(fn, dev, obj, alloc) \
|
#define VK_SAFE_DESTROY(fn, dev, obj, alloc) \
|
||||||
if (obj) { \
|
\
|
||||||
fn(dev, obj, alloc); \
|
do { \
|
||||||
obj = nullptr; \
|
if (obj) { \
|
||||||
}
|
fn(dev, obj, alloc); \
|
||||||
|
obj = nullptr; \
|
||||||
|
} \
|
||||||
|
\
|
||||||
|
} \
|
||||||
|
while (0)
|
||||||
|
|
||||||
class Fence {
|
class Fence {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in New Issue