Add minor improvements
This commit is contained in:
parent
4f726ddac2
commit
8ca8f0ed70
12 changed files with 20 additions and 69 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue