diff --git a/include/nbl/video/ILogicalDevice.h b/include/nbl/video/ILogicalDevice.h index 276ed74501..9a75187541 100644 --- a/include/nbl/video/ILogicalDevice.h +++ b/include/nbl/video/ILogicalDevice.h @@ -1330,7 +1330,7 @@ inline bool ILogicalDevice::validateMemoryBarrier(const uint32_t queueFamilyInde NBL_LOG_ERROR("Invalid aspect mask"); return false; } - if (bool(aspectMask.value & DepthStencilAspects)) + if (!bool(aspectMask.value & DepthStencilAspects)) { NBL_LOG_ERROR("Invalid aspect mask"); return false;