What is the mipmapping and Power-of-Two error?
问题 I run into this error when I set a non-power of to image on webGL: Error: WebGL warning: drawArrays: TEXTURE_2D at unit 0 is incomplete: Mipmapping requires power-of-two sizes. Note, I am currently learning webGL. I have notice that when I use a Power-of-Two image every thing works fine. gl.bindTexture(gl.TEXTURE_2D, texture); gl.texImage2D(gl.TEXTURE_2D, 0, gl.RGB, gl.RGB, gl.UNSIGNED_BYTE, this); gl.texParameteri(gl.TEXTURE_2D, gl.TEXTURE_MIN_FILTER, gl.LINEAR); All I want to do is learn to