code: function(enabled) {
          var gl = this.context;
          if (enabled) {
              this.texture_filter = gl.NEAREST;
          } else {
              this.texture_filter = gl.LINEAR;
          }
      }
docs: TODO consider shifting to texturemanager