提交 492059d8 编写于 作者: M Mr.doob

Revert "WebGLInfo: Clean up."

This reverts commit 481ac66c.
上级 41665054
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册