Skip to content

Commit a6cee1f

Browse files
authored
BufferGeometry: Account for PRIMITIVE_RESTART_FIXED_INDEX in setIndex(). (mrdoob#24569)
1 parent cdf0d5e commit a6cee1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function arrayNeedsUint32( array ) {
3636

3737
for ( let i = array.length - 1; i >= 0; -- i ) {
3838

39-
if ( array[ i ] > 65535 ) return true;
39+
if ( array[ i ] >= 65535 ) return true; // account for PRIMITIVE_RESTART_FIXED_INDEX, #24565
4040

4141
}
4242

0 commit comments

Comments
 (0)