From 040686faae200c52566318267072d226d11f7d46 Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Wed, 2 Nov 2022 08:23:33 +0100 Subject: [PATCH] Fix Flags::operator~() --- snippets/Flags.hpp | 2 +- vulkan/vulkan.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/Flags.hpp b/snippets/Flags.hpp index a04fd47..82aa512 100644 --- a/snippets/Flags.hpp +++ b/snippets/Flags.hpp @@ -84,7 +84,7 @@ VULKAN_HPP_CONSTEXPR Flags operator~() const VULKAN_HPP_NOEXCEPT { - return Flags( m_mask ^ FlagTraits::allFlags ); + return Flags( m_mask ^ FlagTraits::allFlags.m_mask ); } // assignment operators diff --git a/vulkan/vulkan.hpp b/vulkan/vulkan.hpp index 1558726..0a053b9 100644 --- a/vulkan/vulkan.hpp +++ b/vulkan/vulkan.hpp @@ -454,7 +454,7 @@ namespace VULKAN_HPP_NAMESPACE VULKAN_HPP_CONSTEXPR Flags operator~() const VULKAN_HPP_NOEXCEPT { - return Flags( m_mask ^ FlagTraits::allFlags ); + return Flags( m_mask ^ FlagTraits::allFlags.m_mask ); } // assignment operators