unbindTexture method

dynamic unbindTexture()

Implementation

unbindTexture() {
  var boundTexture = currentBoundTextures[currentTextureSlot];

  if (boundTexture != null && boundTexture.type != null) {
    gl.bindTexture(boundTexture.type!, null);

    boundTexture.type = null;
    boundTexture.texture = null;
  }
}