bindTexture method

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

Implementation

void bindTexture(int target, WebGLTexture? texture) {
  startCheck('bindTexture');
  if(texture != null){
    gl.glBindTexture(target, texture.id);
  }
  checkError('bindTexture');
}