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

This commit is contained in:
kingscallop 2020-04-27 04:32:27 +01:00 committed by GitHub
parent 845f8692a5
commit cb113a95fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
{