mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 23:16:31 +00:00
Only modify bitfield properties if bitfields are active
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user