Simple question: What happens when I call glGenTextures(0, someptr);
, generating zero textures? I have a function which generates textures based on a number given by a parameter, which may be 0. I did not find anything in the OpenGL reference pages, Google or StackOverflow. Is it completely undefined (not even defined as undefined behaviour) and therefore dependent on the driver?
I'd be likely just to take the spec at its literal word and assume that the function will "return 0 previously unused texture names in [the array pointed to by the second parameter]". Making it a no-op, in effect.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With