Fix bugs
This commit is contained in:
parent
1d4980ae28
commit
e8cd979f53
3 changed files with 8 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue