Skip to content

Commit eac5159

Browse files
committed
Fix false positive aspect mask error raising
1 parent c7bdd2a commit eac5159

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/nbl/video/ILogicalDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1330,7 +1330,7 @@ inline bool ILogicalDevice::validateMemoryBarrier(const uint32_t queueFamilyInde
13301330
NBL_LOG_ERROR("Invalid aspect mask");
13311331
return false;
13321332
}
1333-
if (bool(aspectMask.value & DepthStencilAspects))
1333+
if (!bool(aspectMask.value & DepthStencilAspects))
13341334
{
13351335
NBL_LOG_ERROR("Invalid aspect mask");
13361336
return false;

0 commit comments

Comments
 (0)