bindTexture method

void bindTexture(
  1. int target,
  2. WebGLTexture? texture
)

Implementation

void bindTexture(int target, WebGLTexture? texture) {
  if(texture == null) return;
  _gl.bindTexture(target, texture.id);
  checkError('bindTexture');
}