Skip to content

Commit

Permalink
initialize values
Browse files Browse the repository at this point in the history
  • Loading branch information
goeiecool9999 committed Oct 31, 2023
1 parent c246ebb commit 759a416
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Cafe/HW/Latte/Renderer/Vulkan/SwapchainInfoVk.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ struct SwapchainInfoVk
};

struct FBImage {
VkImage image;
VkImageView view;
VkFramebuffer frameBuffer;
VkImage image = VK_NULL_HANDLE;
VkImageView view = VK_NULL_HANDLE;
VkFramebuffer frameBuffer = VK_NULL_HANDLE;
VkImageMemAllocation* alloc = nullptr;
bool defined = false;
};
Expand Down Expand Up @@ -101,7 +101,7 @@ struct SwapchainInfoVk
VkRenderPass m_swapchainRenderPass = nullptr;

private:
std::array<FBImage, 2> m_images;
std::array<FBImage, 2> m_images{};
FBImage* frontBuffer = &m_images[0];
FBImage* backBuffer = &m_images[1];

Expand Down

0 comments on commit 759a416

Please sign in to comment.