DrYap
DrYap

Reputation: 6647

glGenTextures not generating names

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).

Does anyone know of a reason why glGenTextures would appear to do nothing?

Upvotes: 2

Views: 1264

Answers (1)

datenwolf
datenwolf

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

Related Questions