Browse Source

Fix the missing clear of the depth buffer handle (#2122)

kingscallop 5 years ago
parent
commit
cb113a95fb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/renderer_vk.cpp

+ 1 - 0
src/renderer_vk.cpp

@@ -5566,6 +5566,7 @@ VK_DESTROY
 		TextureVK& firstTexture = s_renderVK->m_textures[m_attachment[0].handle.idx];
 		::VkImageView textureImageViews[BGFX_CONFIG_MAX_FRAME_BUFFER_ATTACHMENTS];
 
+		m_depth.idx = bx::kInvalidHandle;
 		m_num = 0;
 		for (uint8_t ii = 0; ii < m_numAttachment; ++ii)
 		{