Add minor improvements

This commit is contained in:
schmelczerandras 2020-09-19 17:31:21 +02:00
parent 4f726ddac2
commit 8ca8f0ed70
12 changed files with 20 additions and 69 deletions

View file

@ -9,6 +9,7 @@ export class DefaultFrameBuffer extends FrameBuffer {
public setSize(): boolean {
const hasChanged = super.setSize();
if (hasChanged) {
this.gl.canvas.width = this.size.x;
this.gl.canvas.height = this.size.y;

View file

@ -38,6 +38,7 @@ export class IntermediateFrameBuffer extends FrameBuffer {
public setSize(): boolean {
const hasChanged = super.setSize();
if (hasChanged) {
this.gl.bindTexture(this.gl.TEXTURE_2D, this.frameTexture);