Skip to content

Commit

Permalink
Removed unnecessary message.
Browse files Browse the repository at this point in the history
  • Loading branch information
tx00100xt committed Sep 11, 2023
1 parent 6c02c52 commit 79d36d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions SamTFE/Sources/Engine/Graphics/Gfx_Vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,9 @@ BOOL SvkMain::SetCurrentViewport_Vulkan(CViewPort* pvp)
RECT rectWindow;
_pGfx->GetCurrentDisplayMode(dm);
ASSERT((dm.dm_pixSizeI == 0 && dm.dm_pixSizeJ == 0) || (dm.dm_pixSizeI != 0 && dm.dm_pixSizeJ != 0));
//GetClientRect(pvp->vp_hWnd, &rectWindow);
#ifdef PLATFORM_WIN32
GetClientRect(pvp->vp_hWnd, &rectWindow);
#endif
const PIX pixWinSizeI = rectWindow.right - rectWindow.left;
const PIX pixWinSizeJ = rectWindow.bottom - rectWindow.top;

Expand Down Expand Up @@ -727,7 +729,10 @@ void SvkMain::SwapBuffers_Vulkan()

if (r == VK_ERROR_OUT_OF_DATE_KHR || r == VK_SUBOPTIMAL_KHR)
{
CPrintF("Vulkan: Queue Present KHR swap chain image Done.\n");
// TODO:
// VK_ERROR_OUT_OF_DATE_KHR usually happens after a window resize.
// When resizing the window, the swapchain is created anew anyway,
// so the recreating the swap chain call is not needed here.
}
else if (r != VK_SUCCESS)
{
Expand Down
9 changes: 7 additions & 2 deletions SamTSE/Sources/Engine/Graphics/Gfx_Vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,9 @@ BOOL SvkMain::SetCurrentViewport_Vulkan(CViewPort* pvp)
RECT rectWindow;
_pGfx->GetCurrentDisplayMode(dm);
ASSERT((dm.dm_pixSizeI == 0 && dm.dm_pixSizeJ == 0) || (dm.dm_pixSizeI != 0 && dm.dm_pixSizeJ != 0));
//GetClientRect(pvp->vp_hWnd, &rectWindow);
#ifdef PLATFORM_WIN32
GetClientRect(pvp->vp_hWnd, &rectWindow);
#endif
const PIX pixWinSizeI = rectWindow.right - rectWindow.left;
const PIX pixWinSizeJ = rectWindow.bottom - rectWindow.top;

Expand Down Expand Up @@ -727,7 +729,10 @@ void SvkMain::SwapBuffers_Vulkan()

if (r == VK_ERROR_OUT_OF_DATE_KHR || r == VK_SUBOPTIMAL_KHR)
{
CPrintF("Vulkan: Queue Present KHR swap chain image Done.\n");
// TODO:
// VK_ERROR_OUT_OF_DATE_KHR usually happens after a window resize.
// When resizing the window, the swapchain is created anew anyway,
// so the recreating the swap chain call is not needed here.
}
else if (r != VK_SUCCESS)
{
Expand Down

0 comments on commit 79d36d8

Please sign in to comment.