Update to use changed modules
This commit is contained in:
parent
f2a7107a67
commit
eaeeebfca2
2 changed files with 42 additions and 40 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import { UniversalRenderingContext } from '../universal-rendering-context';
|
||||
import { enableExtension } from './enable-extension';
|
||||
|
||||
/** @internal */
|
||||
|
|
@ -15,7 +16,7 @@ export class WebGlStopwatch {
|
|||
private timerExtension: any;
|
||||
private timerQuery?: WebGLQuery;
|
||||
|
||||
constructor(private readonly gl: WebGL2RenderingContext) {
|
||||
constructor(private readonly gl: WebGL2RenderingContext & UniversalRenderingContext) {
|
||||
this.timerExtension = enableExtension(gl, 'EXT_disjoint_timer_query_webgl2');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue