Skip to content

Commit

Permalink
[Vk] Fix flip error in conditional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
darksylinc committed Dec 5, 2023
1 parent 36a2618 commit 1f52a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RenderSystems/Vulkan/src/Vao/OgreVulkanVaoManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ namespace Ogre
const uint32 idx = mBestVkMemoryTypeIndex[CPU_WRITE_PERSISTENT_COHERENT].back();
// Prefer coherent memory if it's uncached, or if we have no choice.
if( !mSupportsNonCoherentMemory ||
memProperties.memoryTypes[idx].propertyFlags & VK_MEMORY_PROPERTY_HOST_CACHED_BIT )
!( memProperties.memoryTypes[idx].propertyFlags & VK_MEMORY_PROPERTY_HOST_CACHED_BIT ) )
{
mPreferCoherentMemory = true;
}
Expand Down

0 comments on commit 1f52a03

Please sign in to comment.