Skip to content

Commit

Permalink
layer: Fix double ptr in RemoveFromChain (and add vkroots checks)
Browse files Browse the repository at this point in the history
  • Loading branch information
misyltoad committed Apr 30, 2024
1 parent adefb48 commit c7ef7c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion layer/VkLayer_FROG_gamescope_wsi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ namespace GamescopeWSILayer {
const std::array<VkPresentModeKHR, 1> s_SingleMode = {{
pPresentMode ? pPresentMode->presentMode : VK_PRESENT_MODE_FIFO_KHR,
}};
auto [pPresentModeCompat, pPresentModeCompatParent] = vkroots::RemoveFromChain<VkSurfacePresentModeCompatibilityEXT>(&pSurfaceCapabilities);
auto [pPresentModeCompat, pPresentModeCompatParent] = vkroots::RemoveFromChain<VkSurfacePresentModeCompatibilityEXT>(pSurfaceCapabilities);
if (pPresentModeCompat)
vkroots::helpers::array(s_SingleMode, &pPresentModeCompat->presentModeCount, pPresentModeCompat->pPresentModes);

Expand Down
2 changes: 1 addition & 1 deletion subprojects/vkroots

0 comments on commit c7ef7c4

Please sign in to comment.