Skip to content

Commit

Permalink
Only modify bitfield properties if bitfields are active
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jan 7, 2025
1 parent 980b6a8 commit 79be74a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qrenderdoc/Code/BufferFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 79be74a

Please sign in to comment.