From 79be74a8ec214a28ee2a4e8fda553dfb2a384927 Mon Sep 17 00:00:00 2001 From: baldurk Date: Tue, 7 Jan 2025 14:43:19 +0000 Subject: [PATCH] Only modify bitfield properties if bitfields are active --- qrenderdoc/Code/BufferFormatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/Code/BufferFormatter.cpp b/qrenderdoc/Code/BufferFormatter.cpp index f7e5727f7..d6c783b3d 100644 --- a/qrenderdoc/Code/BufferFormatter.cpp +++ b/qrenderdoc/Code/BufferFormatter.cpp @@ -2103,7 +2103,7 @@ ParsedFormat BufferFormatter::ParseFormatString(const QString &formatString, uin } // if we're bitfield packing and we just specified an offset based padding, reset current position - if(specifiedOffset > cur->offset) + if(bitfieldCurPos != ~0U && specifiedOffset > cur->offset) { el.bitFieldOffset = bitfieldCurPos = 0; bitfieldCurPos += el.bitFieldSize;