@@ -787,14 +787,14 @@ define([
787
787
788
788
vbo += vertexBufferOffset [ k ] ;
789
789
790
- var positionHighOffset = 6 * ( k * ( positionSizeInBytes * CesiumMath . SIXTY_FOUR_KILOBYTES ) - vbo * positionSizeInBytes ) ; //componentsPerAttribute(3) * componentDatatype(4)
790
+ var positionHighOffset = 6 * ( k * ( positionSizeInBytes * ( CesiumMath . SIXTY_FOUR_KILOBYTES - 1 ) ) - vbo * positionSizeInBytes ) ; //componentsPerAttribute(3) * componentDatatype(4)
791
791
var positionLowOffset = positionSizeInBytes + positionHighOffset ;
792
792
var prevPositionHighOffset = positionSizeInBytes + positionLowOffset ;
793
793
var prevPositionLowOffset = positionSizeInBytes + prevPositionHighOffset ;
794
794
var nextPositionHighOffset = positionSizeInBytes + prevPositionLowOffset ;
795
795
var nextPositionLowOffset = positionSizeInBytes + nextPositionHighOffset ;
796
- var vertexPickColorBufferOffset = k * ( pickColorSizeInBytes * CesiumMath . SIXTY_FOUR_KILOBYTES ) - vbo * pickColorSizeInBytes ;
797
- var vertexTexCoordExpandWidthAndShowBufferOffset = k * ( texCoordExpandWidthAndShowSizeInBytes * CesiumMath . SIXTY_FOUR_KILOBYTES ) - vbo * texCoordExpandWidthAndShowSizeInBytes ;
796
+ var vertexPickColorBufferOffset = k * ( pickColorSizeInBytes * ( CesiumMath . SIXTY_FOUR_KILOBYTES - 1 ) ) - vbo * pickColorSizeInBytes ;
797
+ var vertexTexCoordExpandWidthAndShowBufferOffset = k * ( texCoordExpandWidthAndShowSizeInBytes * ( CesiumMath . SIXTY_FOUR_KILOBYTES - 1 ) ) - vbo * texCoordExpandWidthAndShowSizeInBytes ;
798
798
799
799
var attributes = [ {
800
800
index : attributeLocations . position3DHigh ,
@@ -1323,7 +1323,7 @@ define([
1323
1323
for ( var j = 0 ; j < numberOfSegments ; ++ j ) {
1324
1324
var segmentLength = segments [ j ] - 1.0 ;
1325
1325
for ( var k = 0 ; k < segmentLength ; ++ k ) {
1326
- if ( indicesCount + 4 >= CesiumMath . SIXTY_FOUR_KILOBYTES - 1 ) {
1326
+ if ( indicesCount + 4 >= CesiumMath . SIXTY_FOUR_KILOBYTES - 2 ) {
1327
1327
polyline . _locatorBuckets . push ( {
1328
1328
locator : bucketLocator ,
1329
1329
count : segmentIndexCount
@@ -1355,7 +1355,7 @@ define([
1355
1355
count : segmentIndexCount
1356
1356
} ) ;
1357
1357
1358
- if ( indicesCount + 4 >= CesiumMath . SIXTY_FOUR_KILOBYTES - 1 ) {
1358
+ if ( indicesCount + 4 >= CesiumMath . SIXTY_FOUR_KILOBYTES - 2 ) {
1359
1359
vertexBufferOffset . push ( 0 ) ;
1360
1360
indices = [ ] ;
1361
1361
totalIndices . push ( indices ) ;
0 commit comments