From dfefc6959fc7c1daa720f2fd72ede197d3d8629d Mon Sep 17 00:00:00 2001 From: Eugene Golushkov Date: Wed, 25 Sep 2024 02:30:28 +0200 Subject: [PATCH] [Vk] Fixed Validation Error: [ VUID-VkPresentInfoKHR-pImageIndices-01430 ] vkQueuePresentKHR(): pPresentInfo->pSwapchains[0] images passed to present must be in layout VK_IMAGE_LAYOUT_PRESENT_SRC_KHR or VK_IMAGE_LAYOUT_SHARED_PRESENT_KHR but is in VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL. --- OgreMain/include/Compositor/OgreCompositorWorkspace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OgreMain/include/Compositor/OgreCompositorWorkspace.h b/OgreMain/include/Compositor/OgreCompositorWorkspace.h index cb990a0c434..e7959b99c40 100644 --- a/OgreMain/include/Compositor/OgreCompositorWorkspace.h +++ b/OgreMain/include/Compositor/OgreCompositorWorkspace.h @@ -159,7 +159,7 @@ namespace Ogre /// Only valid workspaces can update without crashing bool isValid() const { return mValid; } - void setEnabled( bool bEnabled ) { mEnabled = bEnabled; } + void setEnabled( bool bEnabled ) { mEnabled = bEnabled; _notifyBarriersDirty(); } bool getEnabled() const { return mEnabled; } /** When building with OGRE_PROFILING enabled, setting this option to true