unbindTexture method

void unbindTexture([
  1. WebGLTexture? texture
])

Implementation

void unbindTexture([WebGLTexture? texture]) {
  final boundTexture = currentBoundTextures[currentTextureSlot];

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