Fix invalidation
This commit is contained in:
parent
45b1948f7c
commit
0cf8e8dac5
1 changed files with 3 additions and 1 deletions
|
|
@ -41,7 +41,9 @@ export class IntermediateFrameBuffer extends FrameBuffer {
|
|||
|
||||
public invalidate() {
|
||||
if (this.gl.isWebGL2) {
|
||||
this.gl.invalidateFramebuffer(this.gl.FRAMEBUFFER, [
|
||||
this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, this.frameBuffer);
|
||||
|
||||
this.gl.invalidateFramebuffer(this.gl.READ_FRAMEBUFFER, [
|
||||
this.gl.COLOR_ATTACHMENT0,
|
||||
this.gl.COLOR_ATTACHMENT1,
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue