Skip to content

Commit 45858c6

Browse files
committed
Remove uniformMatrix4fv
1 parent 88209df commit 45858c6

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

lib/aglsl/AGALTokenizer.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ export class AGALTokenizer {
1717
desc.native = array.native;
1818
return desc;
1919
} else
20-
return this.decribeAGALByteArray(array);
20+
return this.decribeAGALByteArray(array);
2121
}
2222

2323
public decribeAGALByteArray(bytes: ByteArray): Description {
24-
bytes.position = 0
24+
bytes.position = 0;
2525
const header: Header = new Header();
2626

2727
if (bytes.readUnsignedByte() != 0xa0) {

lib/webgl/ProgramWebGL.ts

-20
Original file line numberDiff line numberDiff line change
@@ -357,26 +357,6 @@ export class ProgramWebGL implements IProgram {
357357
this._gl.uniform4fv(location, value);
358358
}
359359

360-
public uniformMatrix4fv(type: number, transpose: boolean, value:Float32Array):void{
361-
const location = this.getUniformLocation(type)
362-
363-
if (!location) {
364-
return;
365-
}
366-
367-
if (Settings.ENABLE_UNIFORM_CACHE) {
368-
const hash = this._needCache(type * 4, value);
369-
370-
// return undef hash if not require to uppload;
371-
if (hash === void 0) {
372-
return;
373-
}
374-
this._uniformCache[type * 4] = hash;
375-
}
376-
377-
this._gl.uniformMatrix4fv(location, transpose, value)
378-
}
379-
380360
public dispose(): void {
381361
// not real delete progs, because maybe will be recreted in nearest future
382362
// then progs in prety small, we can store 1000 + without overhead

0 commit comments

Comments
 (0)