浏览代码

WebGPURenderer: fix renderContext tracking in WebGLBackend (#27490)

Co-authored-by: aardgoose <[email protected]>
aardgoose 1 年之前
父节点
当前提交
67dfcd8b35
共有 1 个文件被更改,包括 1 次插入11 次删除
  1. 1 11
      examples/jsm/renderers/webgl/WebGLBackend.js

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

@@ -172,9 +172,6 @@ class WebGLBackend extends Backend {
 
 		}
 
-
-		this._currentContext = renderContext;
-
 		const occlusionQueryCount = renderContext.occlusionQueryCount;
 
 		if ( occlusionQueryCount > 0 ) {
@@ -355,7 +352,7 @@ class WebGLBackend extends Backend {
 
 	draw( renderObject, info ) {
 
-		const { pipeline, material, context, isRenderObject } = renderObject;
+		const { pipeline, material, context } = renderObject;
 		const { programGPU, vaoGPU } = this.get( pipeline );
 
 		const { gl, state } = this;
@@ -364,13 +361,6 @@ class WebGLBackend extends Backend {
 
 		//
 
-		if ( isRenderObject ) {
-
-			// we need to bind the framebuffer per object in multi pass pipeline
-			this._setFramebuffer( context );
-
-		}
-
 		const bindings = renderObject.getBindings();
 
 		for ( const binding of bindings ) {