This commit is contained in:
schmelczerandras 2020-09-22 17:57:24 +02:00
parent 1d4980ae28
commit e8cd979f53
3 changed files with 8 additions and 6 deletions

View file

@ -7,7 +7,9 @@ export class FragmentShaderOnlyProgram extends Program {
private vertexArrayExtension: any;
constructor(gl: UniversalRenderingContext) {
super(gl);
this.vertexArrayExtension = enableExtension(this.gl, 'OES_vertex_array_object');
if (!gl.isWebGL2) {
this.vertexArrayExtension = enableExtension(this.gl, 'OES_vertex_array_object');
}
}
public async initialize(