From ae881981f905fdb77e8f5327df362542c5a1b0f5 Mon Sep 17 00:00:00 2001 From: Mahdi Tayarani Date: Tue, 24 Aug 2021 15:51:27 -0400 Subject: [PATCH] Fix raw() accessor on the Flags class The current implementation has a bug where it casts the underlying int type to a uint32_t. The is incorrect for enums like DxvkShaderFlag which are based on uint64_t. --- src/util/util_flags.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/util_flags.h b/src/util/util_flags.h index 1d98522ae..f67b4a2ef 100644 --- a/src/util/util_flags.h +++ b/src/util/util_flags.h @@ -64,7 +64,7 @@ namespace dxvk { m_bits = 0; } - uint32_t raw() const { + IntType raw() const { return m_bits; }