From eac51590cca2463432aae4905f68c851326206f6 Mon Sep 17 00:00:00 2001 From: criss Date: Sun, 2 Feb 2025 21:23:01 +0100 Subject: [PATCH] Fix false positive aspect mask error raising --- include/nbl/video/ILogicalDevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;