Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix direct palettes #232

Merged
merged 13 commits into from
Aug 26, 2023
1 change: 1 addition & 0 deletions src/pc/common/BitArray.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ class BitArray {
readBuffer (smartBuffer, size = this.data.length) {
if (size !== this.data.length) {
this.data = new Uint32Array(size)
this.readOffset = size * 4
nickelpro marked this conversation as resolved.
Show resolved Hide resolved
return
}

Expand Down
1 change: 1 addition & 0 deletions src/pc/common/BitArrayNoSpan.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class BitArray {
readBuffer (smartBuffer, size = this.data.length) {
if (size !== this.data.length) {
this.data = new Uint32Array(size)
smartBuffer.readOffset += size * 4
return
}

Expand Down
Loading