Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/renderers/webgl-fallback/WebGLBackend.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ class WebGLBackend extends Backend {
if ( this.discard === false ) {

// required here to handle async behaviour of render.compute()
gl.enable( gl.RASTERIZER_DISCARD );
state.enable( gl.RASTERIZER_DISCARD );
this.discard = true;

}
Expand Down Expand Up @@ -901,11 +901,11 @@ class WebGLBackend extends Backend {
*/
finishCompute( computeGroup ) {

const gl = this.gl;
const { state, gl } = this;

this.discard = false;

gl.disable( gl.RASTERIZER_DISCARD );
state.disable( gl.RASTERIZER_DISCARD );

this.prepareTimestampBuffer( TimestampQuery.COMPUTE, this.getTimestampUID( computeGroup ) );

Expand Down
4 changes: 2 additions & 2 deletions src/renderers/webgl-fallback/utils/WebGLState.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,11 +625,11 @@ class WebGLState {

if ( boolean ) {

gl.enable( gl.SCISSOR_TEST );
this.enable( gl.SCISSOR_TEST );

} else {

gl.disable( gl.SCISSOR_TEST );
this.disable( gl.SCISSOR_TEST );

}

Expand Down