mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
commit
e34b5f1f55
1 changed files with 8 additions and 0 deletions
|
@ -211,6 +211,9 @@ namespace
|
||||||
{
|
{
|
||||||
VkRenderPass precompute_render_pass(VkDevice dev, VkFormat color_format, u8 number_of_color_surface, VkFormat depth_format)
|
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 */
|
/* Describe a render pass and framebuffer attachments */
|
||||||
std::vector<VkAttachmentDescription> attachments = {};
|
std::vector<VkAttachmentDescription> attachments = {};
|
||||||
std::vector<VkAttachmentReference> attachment_references;
|
std::vector<VkAttachmentReference> attachment_references;
|
||||||
|
@ -454,6 +457,11 @@ VKGSRender::~VKGSRender()
|
||||||
//TODO: Properly destroy shader modules instead of calling clear...
|
//TODO: Properly destroy shader modules instead of calling clear...
|
||||||
m_prog_buffer.clear();
|
m_prog_buffer.clear();
|
||||||
|
|
||||||
|
m_index_buffer.release();
|
||||||
|
m_uniform_buffer.release();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (auto &render_pass : m_render_passes)
|
for (auto &render_pass : m_render_passes)
|
||||||
if (render_pass)
|
if (render_pass)
|
||||||
vkDestroyRenderPass(*m_device, render_pass, nullptr);
|
vkDestroyRenderPass(*m_device, render_pass, nullptr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue