some more vulkan return code production

This commit is contained in:
Gregory Wells
2025-07-29 09:46:26 -04:00
parent 09b139efa5
commit a628dc7a23
6 changed files with 42 additions and 52 deletions

View File

@@ -20,10 +20,7 @@ gnReturnCode createFramebuffer(gnFramebuffer framebuffer, gnDevice device, gnFra
.layers = 1
};
if (vkCreateFramebuffer(device->outputDevice->device, &framebufferInfo, NULL, &framebuffer->framebuffer->framebuffer) != VK_SUCCESS) {
return GN_FAILED_TO_CREATE_FRAMEBUFFER;
}
VkResult res = vkCreateFramebuffer(device->outputDevice->device, &framebufferInfo, NULL, &framebuffer->framebuffer->framebuffer);
free(attachments);
return GN_SUCCESS;
}