src/graphics/gl-textures.js
function(unit) {
        var gl = this.gl;
        this.unit = unit;
        this.name = "TEXTURE" + unit;
        this.manager.setActiveTexture(this);
        gl.bindTexture(gl.TEXTURE_2D, this.glTexture);
    }
function(unit) {
        var gl = this.gl;
        this.unit = unit;
        this.name = "TEXTURE" + unit;
        this.manager.setActiveTexture(this);
        gl.bindTexture(gl.TEXTURE_2D, this.glTexture);
    }
function ( unit ) { var gl = this . gl ; this . unit = unit ; this . name = "TEXTURE" + unit ; this . manager . setActiveTexture ( this ) ; gl . bindTexture ( gl . TEXTURE_2D , this . glTexture ) ; }
Given a number, binds to the corresponding texture unit
Given a number binds to the corresponding texture unit