2
0
Эх сурвалжийг харах

fix storage buffer bound in webglbackend (#28644)

Renaud Rohlinger 1 жил өмнө
parent
commit
b30715ae26

+ 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 );
 
 	}