Skip to content

Commit

Permalink
WebGPURenderer: fix renderContext tracking in WebGLBackend (mrdoob#27490
Browse files Browse the repository at this point in the history
)

Co-authored-by: aardgoose <angus.sawyer@email.com>
  • Loading branch information
2 people authored and AdaRoseCannon committed Jan 15, 2024
1 parent 669e508 commit bab139b
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions examples/jsm/renderers/webgl/WebGLBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,6 @@ class WebGLBackend extends Backend {

}


this._currentContext = renderContext;

const occlusionQueryCount = renderContext.occlusionQueryCount;

if ( occlusionQueryCount > 0 ) {
Expand Down Expand Up @@ -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;
Expand All @@ -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 ) {
Expand Down

0 comments on commit bab139b

Please sign in to comment.