Fix invalidation

This commit is contained in:
schmelczerandras 2020-10-31 19:23:45 +01:00
parent 45b1948f7c
commit 0cf8e8dac5

View file

@ -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,
]);