File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -204,3 +204,4 @@ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to Cesiu
204
204
* [ Mirco Kroon] ( https://github.com/mircokroon )
205
205
* [ Rikku-x] ( https://github.com/Rikku-x )
206
206
* [ Adrien David] ( https://github.com/adridavid )
207
+ * [ Alexander Popiak] ( https://github.com/apopiak )
Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ define([
516
516
return boundingSphere ;
517
517
}
518
518
519
- function prepareVertexAttribute ( typedArray ) {
519
+ function prepareVertexAttribute ( typedArray , name ) {
520
520
// WebGL does not support UNSIGNED_INT, INT, or DOUBLE vertex attributes. Convert these to FLOAT.
521
521
var componentDatatype = ComponentDatatype . fromTypedArray ( typedArray ) ;
522
522
if ( componentDatatype === ComponentDatatype . INT || componentDatatype === ComponentDatatype . UNSIGNED_INT || componentDatatype === ComponentDatatype . DOUBLE ) {
@@ -573,7 +573,7 @@ define([
573
573
for ( var name in styleableProperties ) {
574
574
if ( styleableProperties . hasOwnProperty ( name ) ) {
575
575
var property = styleableProperties [ name ] ;
576
- var typedArray = prepareVertexAttribute ( property . typedArray ) ;
576
+ var typedArray = prepareVertexAttribute ( property . typedArray , name ) ;
577
577
componentsPerAttribute = property . componentCount ;
578
578
componentDatatype = ComponentDatatype . fromTypedArray ( typedArray ) ;
579
579
@@ -634,7 +634,7 @@ define([
634
634
635
635
var batchIdsVertexBuffer ;
636
636
if ( hasBatchIds ) {
637
- batchIds = prepareVertexAttribute ( batchIds ) ;
637
+ batchIds = prepareVertexAttribute ( batchIds , 'batchIds' ) ;
638
638
batchIdsVertexBuffer = Buffer . createVertexBuffer ( {
639
639
context : context ,
640
640
typedArray : batchIds ,
You can’t perform that action at this time.
0 commit comments