Vulkan code cleanup.

This commit is contained in:
Philip Rideout
2020-07-08 11:04:04 -07:00
parent c8aad378c4
commit 96032eada5
@@ -174,13 +174,9 @@ VulkanRenderTarget::VulkanRenderTarget(VulkanContext& context, uint32_t width, u
VulkanRenderTarget::~VulkanRenderTarget() {
for (int targetIndex = 0; targetIndex < MRT::TARGET_COUNT; targetIndex++) {
if (mColor[targetIndex].view) {
vkDestroyImageView(mContext.device, mColor[targetIndex].view, VKALLOC);
}
}
if (mDepth.view) {
vkDestroyImageView(mContext.device, mDepth.view, VKALLOC);
vkDestroyImageView(mContext.device, mColor[targetIndex].view, VKALLOC);
}
vkDestroyImageView(mContext.device, mDepth.view, VKALLOC);
}
void VulkanRenderTarget::transformClientRectToPlatform(VkRect2D* bounds) const {