Skip to content

Commit 72bd107

Browse files
Merge pull request #826 from Crisspl/quick-fix
Fix false positive aspect mask error raising
2 parents 4786926 + eac5159 commit 72bd107

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
@@ -1332,7 +1332,7 @@ inline bool ILogicalDevice::validateMemoryBarrier(const uint32_t queueFamilyInde
13321332
NBL_LOG_ERROR("Invalid aspect mask");
13331333
return false;
13341334
}
1335-
if (bool(aspectMask.value & DepthStencilAspects))
1335+
if (!bool(aspectMask.value & DepthStencilAspects))
13361336
{
13371337
NBL_LOG_ERROR("Invalid aspect mask");
13381338
return false;

0 commit comments

Comments
 (0)