Просмотр исходного кода

remove useless call (#29631)

Co-authored-by: aardgoose <angus.sawyer@email.com>
aardgoose 1 год назад
Родитель
Сommit
1886e4b91c
1 измененных файлов с 0 добавлено и 4 удалено
  1. 0 4
      src/renderers/webgl-fallback/WebGLBackend.js

+ 0 - 4
src/renderers/webgl-fallback/WebGLBackend.js

@@ -1085,8 +1085,6 @@ class WebGLBackend extends Backend {
 
 
 		// Bindings
 		// Bindings
 
 
-		this.createBindings( null, bindings );
-
 		this._setupBindings( bindings, programGPU );
 		this._setupBindings( bindings, programGPU );
 
 
 		const attributeNodes = computeProgram.attributes;
 		const attributeNodes = computeProgram.attributes;
@@ -1158,8 +1156,6 @@ class WebGLBackend extends Backend {
 
 
 	updateBindings( bindGroup /*, bindings*/ ) {
 	updateBindings( bindGroup /*, bindings*/ ) {
 
 
-		if ( bindGroup === null ) return;
-
 		const { gl } = this;
 		const { gl } = this;
 
 
 		const bindGroupData = this.get( bindGroup );
 		const bindGroupData = this.get( bindGroup );

粤ICP备19079148号