fix up null warning for gl.bindTexture
fixed typo