Browse Source

WebGLInfo: Clean up.

Mr.doob 5 years ago
parent
commit
481ac66c9a

+ 1 - 1
src/renderers/WebGLRenderer.js

@@ -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( _gl );
+		info = new WebGLInfo();
 		properties = new WebGLProperties();
 		textures = new WebGLTextures( _gl, extensions, state, properties, capabilities, utils, info );
 		attributes = new WebGLAttributes( _gl );

+ 1 - 1
src/renderers/webgl/WebGLInfo.d.ts

@@ -5,7 +5,7 @@ import { WebGLProgram } from './WebGLProgram';
  */
 export class WebGLInfo {
 
-	constructor( gl: WebGLRenderingContext );
+	constructor();
 
 	autoReset: boolean;
 	memory: {

+ 1 - 1
src/renderers/webgl/WebGLInfo.js

@@ -2,7 +2,7 @@
  * @author Mugen87 / https://github.com/Mugen87
  */
 
-function WebGLInfo( gl ) {
+function WebGLInfo() {
 
 	var memory = {
 		geometries: 0,