Skip to content

Commit

Permalink
WebGL1Renderer: Convert to es6 class
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Feb 17, 2021
1 parent 896d908 commit 5df56b8
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/renderers/WebGL1Renderer.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,7 @@
import { WebGLRenderer } from './WebGLRenderer.js';

function WebGL1Renderer( parameters ) {
class WebGL1Renderer extends WebGLRenderer {}

WebGLRenderer.call( this, parameters );

}

WebGL1Renderer.prototype = Object.assign( Object.create( WebGLRenderer.prototype ), {

constructor: WebGL1Renderer,

isWebGL1Renderer: true

} );
WebGL1Renderer.prototype.isWebGL1Renderer = true;

export { WebGL1Renderer };

0 comments on commit 5df56b8

Please sign in to comment.