소스 검색

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 ) {