Skip to content

Commit

Permalink
Fixed uninitialized m_swapchainIndex (#28)
Browse files Browse the repository at this point in the history
* Fixed uninitialized m_swapchainIndex

* Moved FramebufferSwapchain::m_swapchainIndex initialization to ctor definition
  • Loading branch information
rafalcieslak authored and asuessenbach committed Mar 31, 2017
1 parent 6c87a40 commit d5eefab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vkhlf/src/FramebufferSwapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ namespace vkhlf {
std::shared_ptr<Allocator> const& swapchainAllocator,
std::shared_ptr<Allocator> const& imageAllocator,
std::shared_ptr<Allocator> const& imageViewAllocator)
: m_swapchainIndex(0)
{
vk::SurfaceCapabilitiesKHR surfaceCapabilities = device->get<PhysicalDevice>()->getSurfaceCapabilities(surface);
assert(surfaceCapabilities.currentExtent.width != -1);
Expand Down

0 comments on commit d5eefab

Please sign in to comment.