This reverts commit 481ac66c9a417dc115eb06e6a6f4947b0b8ed923.
@@ -278,7 +278,7 @@ function WebGLRenderer( parameters ) {
state.scissor( _currentScissor.copy( _scissor ).multiplyScalar( _pixelRatio ).floor() );
state.viewport( _currentViewport.copy( _viewport ).multiplyScalar( _pixelRatio ).floor() );
- info = new WebGLInfo();
+ info = new WebGLInfo( _gl );
properties = new WebGLProperties();
textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info );
attributes = new WebGLAttributes( _gl );
@@ -5,7 +5,7 @@ import { WebGLProgram } from './WebGLProgram';
*/
export class WebGLInfo {
- constructor();
+ constructor( gl: WebGLRenderingContext );
autoReset: boolean;
memory: {
@@ -2,7 +2,7 @@
* @author Mugen87 / https://github.com/Mugen87
-function WebGLInfo() {
+function WebGLInfo( gl ) {
var memory = {
geometries: 0,