Skip to content

Commit

Permalink
WEBGLRenderPass fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Mar 31, 2024
1 parent 9ed3a8b commit f7326b9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/webgl/src/adapter/resources/webgl-render-pass.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ export class WEBGLRenderPass extends RenderPass {

end(): void {
popContextState(this.device.gl);
if (this.props.framebuffer) {
setGLParameters(this.device.gl, {framebuffer: null});
}
// should add commands to CommandEncoder.
}

Expand All @@ -58,7 +55,7 @@ export class WEBGLRenderPass extends RenderPass {
* Maps RenderPass parameters to GL parameters
*/
setParameters(parameters: RenderPassParameters = {}): void {
const glParameters: GLParameters = {};
const glParameters: GLParameters = {...this.glParameters};

// Framebuffers are specified using parameters in WebGL
glParameters.framebuffer = this.props.framebuffer || null;
Expand Down

0 comments on commit f7326b9

Please sign in to comment.