mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-22 18:53:28 +01:00
vulkan: Do not create empty render pass.
Fix a crash with radeon crimson drivers.
This commit is contained in:
parent
3506d03dc5
commit
d9eba43360
@ -211,6 +211,9 @@ namespace
|
||||
{
|
||||
VkRenderPass precompute_render_pass(VkDevice dev, VkFormat color_format, u8 number_of_color_surface, VkFormat depth_format)
|
||||
{
|
||||
// Some driver crashes when using empty render pass
|
||||
if (number_of_color_surface == 0 && depth_format == VK_FORMAT_UNDEFINED)
|
||||
return nullptr;
|
||||
/* Describe a render pass and framebuffer attachments */
|
||||
std::vector<VkAttachmentDescription> attachments = {};
|
||||
std::vector<VkAttachmentReference> attachment_references;
|
||||
|
Loading…
Reference in New Issue
Block a user