Skip to content

Commit

Permalink
Make sure that the image/view exist before deleting them.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWoloszyn committed Dec 19, 2018
1 parent 19f9142 commit 65f8c77
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gapis/api/vulkan/api/image.api
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,9 @@ cmd void vkDestroyImageView(
}

delete(ImageViews, imageView)
delete(viewObj.Image.Views, imageView)
if (viewObj.Image && imageView in viewObj.Image.Views) {
delete(viewObj.Image.Views, imageView)
}
}
}

Expand Down

0 comments on commit 65f8c77

Please sign in to comment.