mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
vulkan: fix a crash on minimization.
Use a fake backbuffer when the system reports 0 for swap chain dimensions.
This commit is contained in:
@@ -394,6 +394,7 @@ private:
|
||||
VkSurfaceKHR surface = VK_NULL_HANDLE;
|
||||
VkSwapchainKHR swapChain = VK_NULL_HANDLE;
|
||||
std::vector<VkImage> swapChainImages;
|
||||
StrongRef<Texture> fakeBackbuffer;
|
||||
VkFormat swapChainImageFormat = VK_FORMAT_UNDEFINED;
|
||||
PixelFormat swapChainPixelFormat = PIXELFORMAT_UNKNOWN;
|
||||
VkFormat depthStencilFormat = VK_FORMAT_UNDEFINED;
|
||||
|
||||
Reference in New Issue
Block a user