I am currently facing an error that I cannot seem to figure out.
In chrome I am receiving:
GL ERROR :GL_INVALID_VALUE : glTexImage2D: invalid internal_format GL_FALSE
RENDER WARNING: there is no texture bound to the unit 0
Which is resulting in my 3D object having just a black texture rather than the image I have waiting to be rendered.
So I found the answer after fiddling around with my code a little, turns out its a simple fix (maybe stupidity on my part) but what I used to have was this:
All that needed changing was the order, so now it looks like this:
internal_format
is the 3rd argument togl.texImage2D
. The error mesages says you are passing either0
orundefined
ornull
. All of those become0
which is the same asGL_FALSE
.You need to pass a valid internal format like
gl.RGBA
,gl.RGB
, etc...The second error is because of the first.