Skip to content

Commit

Permalink
hack buffer pool flag to 20 bits (cocos#7349)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mee-gu committed Sep 10, 2020
1 parent 8fffa7f commit 093436d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cocos/core/renderer/core/memory-pools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class BufferPool<P extends PoolType, T extends TypedArray, E extends BufferManif
this._stride = bytesPerElement * this._elementCount;
this._entriesPerChunk = 1 << entryBits;
this._entryMask = this._entriesPerChunk - 1;
this._poolFlag = 1 << 30;
this._poolFlag = 1 << 20;
this._chunkMask = ~(this._entryMask | this._poolFlag);
this._nativePool = new NativeBufferPool(poolType, entryBits, this._stride);
}
Expand Down

0 comments on commit 093436d

Please sign in to comment.