Skip to content

Commit

Permalink
fixing macOS issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Kbz-8 committed Jan 11, 2025
1 parent 285bcda commit 809bea2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runtime/Sources/Renderer/Swapchain.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "kvf.h"
#include <PreCompiled.h>

#include <Platform/Window.h>
Expand Down Expand Up @@ -88,6 +89,7 @@ namespace mlx
RenderCore::Get().vkGetSwapchainImagesKHR(RenderCore::Get().GetDevice(), m_swapchain, &m_images_count, tmp.data());
VkCommandBuffer cmd = kvfCreateCommandBuffer(RenderCore::Get().GetDevice());
kvfBeginCommandBuffer(cmd, VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT);
extent = kvfGetSwapchainImagesSize(m_swapchain); // fix the extent
for(std::size_t i = 0; i < m_images_count; i++)
{
#ifdef DEBUG
Expand Down

0 comments on commit 809bea2

Please sign in to comment.