diff options
author | Danny Holman <dholman@gymli.org> | 2024-10-28 15:52:52 -0500 |
---|---|---|
committer | Danny Holman <dholman@gymli.org> | 2024-10-28 15:55:49 -0500 |
commit | 2965bdde04eaa0012b29695aa015c354deb30bed (patch) | |
tree | 27a74440014ec67c35695dd355fdb1995937cef9 /render/vulkan/framebuffer.c | |
parent | 075efbc3c4603246a9fb6c0e2e8ede051d444cd6 (diff) |
render: move get_vkerr_str into vkassert.h
Move get_vkerr_str into vkassert.h and use its output in the vkassert
function. This reduces the need for an error message argument when
calling vkassert and makes error messages in logs consistent across the
entire Vulkan renderer.
Signed-off-by: Danny Holman <dholman@gymli.org>
Diffstat (limited to 'render/vulkan/framebuffer.c')
-rw-r--r-- | render/vulkan/framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/render/vulkan/framebuffer.c b/render/vulkan/framebuffer.c index 36d90c0..755af29 100644 --- a/render/vulkan/framebuffer.c +++ b/render/vulkan/framebuffer.c @@ -21,7 +21,7 @@ struct vkframebuffer* create_vkframebuffer(struct vkdev *dev, struct vkrendpass fbinfo.width = width; fbinfo.height = height; fbinfo.layers = 1; - vkassert(vkCreateFramebuffer(dev->ldev, &fbinfo, NULL, &ret->handle), "Failed to create Vulkan framebuffer"); + vkassert(vkCreateFramebuffer(dev->ldev, &fbinfo, NULL, &ret->handle)); return ret; } |