I'm getting GL_INVALID_OPERATION sometimes (really randomly) in a call
to glTexImage2D.
I inserted an assert there and I checked if the call was somehow
between glBegin and glEnd but it's not.
Then I thought it could be a threading problem, I checked if the thread
calling the code is still the drawing thread: Yes it is.
So now I have a problem since I don't know what is happening. The bug
only occurs when I switch from displaying a video using PBO and going
to normal texture. If i only use normal textures it does not happen.
The buggy call to glTexImage2D is in the "normal texture". Somehow the
PBO influences the call I guess.
Any ideas?
Marco
I've seen a GL_INVALID_OPERATION get generated on a glTexImage2D if
there is a problem where the type parameter conflicts with the format
parameter.
Jim Lahue
My mistake, I forgot to call glUnmap is some cases.
wpr.