From 09ad5b234087ac9bc1c51da24369c4888c735548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 23 Nov 2025 16:42:06 -0800 Subject: [PATCH] Don't truncate view id for uniform cache. (#3505) --- src/bgfx_p.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index fe564934a..55e4eca95 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -2178,8 +2178,8 @@ namespace bgfx { using KeyT = uint64_t; - static constexpr uint8_t kViewShift = sizeof(KeyT)*8-kSortKeyViewNumBits; - static constexpr KeyT kViewMask = KeyT(BGFX_CONFIG_MAX_VIEWS-1)<