diff --git a/lib/aglsl/AGALTokenizer.ts b/lib/aglsl/AGALTokenizer.ts index a3a9cb10..1f9e0a5d 100644 --- a/lib/aglsl/AGALTokenizer.ts +++ b/lib/aglsl/AGALTokenizer.ts @@ -17,11 +17,11 @@ export class AGALTokenizer { desc.native = array.native; return desc; } else - return this.decribeAGALByteArray(array); + return this.decribeAGALByteArray(array); } public decribeAGALByteArray(bytes: ByteArray): Description { - bytes.position = 0 + bytes.position = 0; const header: Header = new Header(); if (bytes.readUnsignedByte() != 0xa0) { diff --git a/lib/webgl/ProgramWebGL.ts b/lib/webgl/ProgramWebGL.ts index 08e2b5f0..292cead9 100644 --- a/lib/webgl/ProgramWebGL.ts +++ b/lib/webgl/ProgramWebGL.ts @@ -357,26 +357,6 @@ export class ProgramWebGL implements IProgram { this._gl.uniform4fv(location, value); } - public uniformMatrix4fv(type: number, transpose: boolean, value:Float32Array):void{ - const location = this.getUniformLocation(type) - - if (!location) { - return; - } - - if (Settings.ENABLE_UNIFORM_CACHE) { - const hash = this._needCache(type * 4, value); - - // return undef hash if not require to uppload; - if (hash === void 0) { - return; - } - this._uniformCache[type * 4] = hash; - } - - this._gl.uniformMatrix4fv(location, transpose, value) - } - public dispose(): void { // not real delete progs, because maybe will be recreted in nearest future // then progs in prety small, we can store 1000 + without overhead