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