Skip to content

Commit

Permalink
[Vk] Fixed Validation Error: [ VUID-VkPresentInfoKHR-pImageIndices-01…
Browse files Browse the repository at this point in the history
…430 ] 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.
  • Loading branch information
eugenegff committed Sep 25, 2024
1 parent 2300f52 commit 2727b62
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion OgreMain/include/Compositor/OgreCompositorWorkspace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
bool getEnabled() const { return mEnabled; }

/** When building with OGRE_PROFILING enabled, setting this option to true
Expand Down
9 changes: 9 additions & 0 deletions OgreMain/src/Compositor/OgreCompositorWorkspace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,15 @@ namespace Ogre
return finalTarget;
}
//-----------------------------------------------------------------------------------
void CompositorWorkspace::setEnabled( bool bEnabled )
{
if( mEnabled != bEnabled )
{
mEnabled = bEnabled;
_notifyBarriersDirty();
}
}
//-----------------------------------------------------------------------------------
void CompositorWorkspace::_notifyBarriersDirty() { getCompositorManager()->_notifyBarriersDirty(); }
//-----------------------------------------------------------------------------------
CompositorManager2 *CompositorWorkspace::getCompositorManager()
Expand Down

0 comments on commit 2727b62

Please sign in to comment.