mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 12:05:20 +00:00
Added handle's value clearing after framebuffer's destruction.
This commit is contained in:
@@ -1161,6 +1161,7 @@ namespace ApiWithoutSecrets {
|
||||
bool Tutorial07::CreateFramebuffer( VkFramebuffer &framebuffer, VkImageView image_view ) {
|
||||
if( framebuffer != VK_NULL_HANDLE ) {
|
||||
vkDestroyFramebuffer( GetDevice(), framebuffer, nullptr );
|
||||
framebuffer = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
VkFramebufferCreateInfo framebuffer_create_info = {
|
||||
|
||||
Reference in New Issue
Block a user