Skip to content

Commit

Permalink
Make sure current mask is 0 immediately following a push
Browse files Browse the repository at this point in the history
  • Loading branch information
IMS212 committed Jun 28, 2024
1 parent fe09ed3 commit 3030f9b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ public abstract class BufferBuilderMixin implements VertexBufferWriter, Extended
@Shadow
private long vertexPointer;

@Shadow
private int currentMask;
@Unique
private VertexFormatDescription formatDescription;

Expand Down Expand Up @@ -79,6 +81,7 @@ public void push(MemoryStack stack, long src, int count, VertexFormatDescription

this.vertexCount += count;
this.vertexPointer = dst + length;
this.currentMask = 0;
}

@Unique
Expand Down

0 comments on commit 3030f9b

Please sign in to comment.