glEnable(GL_ALPHA_TEST | GL_DEPTH_TEST)

is it possible to combine GLenum’s passed into glEnable/glDisable using bitwise operators?
Been looking through the spec and can’t see anything regarding this…

AFAIK, the only time where | can be used to say multiple things is if the GL enumeration has BIT, so for glEnable stuff no go. Looking at the values of the enumerations in gl.h gives the beans too:


#define GL_ALPHA_TEST                     0x0BC0
#define GL_DEPTH_TEST                     0x0B71