src/graphics/webgl-layer.js
function() {
        var c = this._canvas;
        c.width = Crafty.viewport.width;
        c.height = Crafty.viewport.height;

        var gl = this.context;
        gl.viewportWidth = c.width;
        gl.viewportHeight = c.height;
    }
function() {
        var c = this._canvas;
        c.width = Crafty.viewport.width;
        c.height = Crafty.viewport.height;

        var gl = this.context;
        gl.viewportWidth = c.width;
        gl.viewportHeight = c.height;
    }
function ( ) { var c = this . _canvas ; c . width = Crafty . viewport . width ; c . height = Crafty . viewport . height ; var gl = this . context ; gl . viewportWidth = c . width ; gl . viewportHeight = c . height ; }
Called when the viewport resizes
Called when the viewport resizes