@@ -5,6 +5,13 @@
private _alphaBlend = false;
private _blendFunctionParameters = new Array<number>(4);
+ /**
+ * Initializes the state.
+ */
+ public constructor() {
+ this.reset();
+ }
+
public get isDirty(): boolean {
return this._isAlphaBlendDirty || this._isBlendFunctionParametersDirty;
}
@@ -14,6 +14,13 @@
private _cullFace: number;
private _zOffset: number;
return this._isDepthFuncDirty || this._isDepthTestDirty || this._isDepthMaskDirty || this._isCullFaceDirty || this._isCullDirty || this._isZOffsetDirty;