Skip to content

Commit

Permalink
Fixed a NPE on image destroy.
Browse files Browse the repository at this point in the history
  • Loading branch information
AWoloszyn committed Mar 2, 2018
1 parent e73ac48 commit 3ff5101
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gapis/api/vulkan/vulkan.api
Original file line number Diff line number Diff line change
Expand Up @@ -4186,8 +4186,10 @@ cmd void vkDestroyImage(
}
delete(Images, image)
for _, _, v in ImageViews {
if v.Image.VulkanHandle == image {
v.Image = null
if v.Image != null {
if v.Image.VulkanHandle == image {
v.Image = null
}
}
}
for i in (0 .. LastPresentInfo.PresentImageCount) {
Expand Down

0 comments on commit 3ff5101

Please sign in to comment.