|
|
@@ -33,7 +33,7 @@ class StorageArrayElementNode extends ArrayElementNode {
|
|
|
|
|
|
if ( builder.isAvailable( 'storageBuffer' ) === false ) {
|
|
|
|
|
|
- if ( ! this.node.instanceIndex && this.node.bufferObject === true ) {
|
|
|
+ if ( this.node.bufferObject === true ) {
|
|
|
|
|
|
builder.setupPBO( this.node );
|
|
|
|
|
|
@@ -55,15 +55,13 @@ class StorageArrayElementNode extends ArrayElementNode {
|
|
|
|
|
|
if ( builder.isAvailable( 'storageBuffer' ) === false ) {
|
|
|
|
|
|
- const { node } = this;
|
|
|
-
|
|
|
- if ( ! node.instanceIndex && this.node.bufferObject === true && isAssignContext !== true ) {
|
|
|
+ if ( this.node.bufferObject === true && isAssignContext !== true ) {
|
|
|
|
|
|
snippet = builder.generatePBO( this );
|
|
|
|
|
|
} else {
|
|
|
|
|
|
- snippet = node.build( builder );
|
|
|
+ snippet = this.node.build( builder );
|
|
|
|
|
|
}
|
|
|
|