Browse Source

fix storage buffer bound in webglbackend (#28644)

Renaud Rohlinger 1 year ago
parent
commit
b30715ae26
1 changed files with 5 additions and 1 deletions
  1. 5 1
      examples/jsm/renderers/webgl/WebGLBackend.js

+ 5 - 1
examples/jsm/renderers/webgl/WebGLBackend.js

@@ -1086,7 +1086,11 @@ class WebGLBackend extends Backend {
 
 	createStorageAttribute( attribute ) {
 
-		//console.warn( 'Abstract class.' );
+		if ( this.has( attribute ) ) return;
+
+		const gl = this.gl;
+
+		this.attributeUtils.createAttribute( attribute, gl.ARRAY_BUFFER );
 
 	}