Bugfix window minimization

This commit is contained in:
red-prig 2023-04-09 15:35:15 +03:00
parent 3dfcab813e
commit 9ffe22f2eb

View File

@ -501,10 +501,12 @@ var
begin
For i:=0 to High(FImages) do
begin
vkDestroyImageView(Device.FHandle,FImages[i].FView,nil);
if (FImages[i].FView<>VK_NULL_HANDLE) then
vkDestroyImageView(Device.FHandle,FImages[i].FView,nil);
FImages[i].Free;
end;
vkDestroySwapchainKHR(Device.FHandle,FHandle,nil);
if (FHandle<>VK_NULL_HANDLE) then
vkDestroySwapchainKHR(Device.FHandle,FHandle,nil);
end;
Destructor TvCustomImage.Destroy;