GPUOpen-Archive / Anvil

Anvil is a cross-platform framework for Vulkan
MIT License
594 stars 62 forks source link

Fixed potential NULL-pointer access when creating a new image #154

Open Silverlan opened 4 years ago

Silverlan commented 4 years ago

is_vk_call_successful returns true even if the result of vkCreateImage is VK_ERROR_VALIDATION_FAILED_EXT. The specification doesn't mention it as a valid return code, but in some cases it can be returned by the Nvidia drivers anyway, in which case m_image will be NULL.