Skip to content

Commit

Permalink
fix: delete default gl state
Browse files Browse the repository at this point in the history
  • Loading branch information
shensi.zxd committed Oct 23, 2021
1 parent 3b4a242 commit a13e18e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/rhi-webgl/src/WebGLRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ export class WebGLRenderer implements IHardwareRenderer {
private _activeTextures: GLTexture[] = new Array(32);

// cache value
private _lastViewport: Vector4 = new Vector4(undefined, undefined, undefined, undefined);
private _lastClearColor: Color = new Color(undefined, undefined, undefined, undefined);
private _lastViewport: Vector4 = new Vector4(null, null, null, null);
private _lastClearColor: Color = new Color(null, null, null, null);

get isWebGL2() {
return this._isWebGL2;
Expand Down

0 comments on commit a13e18e

Please sign in to comment.