Reputation: 6647
I am using OpenGL ES 1.1 with the NDK and occasionally when I call glGenTextures
it does not change the value of name holder that I pass in (doesn't even set it to 0).
glGetError
returns 0, no error.onDrawFrame
of the surface renderer so the context shouldn't be a problem. (edit: this was a wrong assumption and was the cause of the problem)Does anyone know of a reason why glGenTextures
would appear to do nothing?
Upvotes: 2
Views: 1264
Reputation: 162164
Is glGenTextures called with a valid OpenGL(-ES) context being active? If you're using multiple threads: A OpenGL(-ES) context can be active in only one thread at a time. But each thread may have a different context active.
Upvotes: 3