Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In an iOS app I am writing I am now culling all the GL 1 crap from my GL 2 code. Can I safely remove glEnable?

share|improve this question
glEnable() is usually used with parameters - see… - could you please tell us what you plan to use/are using glenable() for? – sarahm Dec 6 '11 at 23:22
@sarahm, this is from the GLES 1.0 specs; the 2.0 version is at – sam hocevar Dec 7 '11 at 0:18
Sorry, didn't notice I was quoting the old spec. Thank you. – sarahm Dec 7 '11 at 0:23
up vote 13 down vote accepted

glEnable and glDisable are still present in GLES 2, but a lot of boolean states are deprecated or even removed (for instance, GL_TEXTURE_2D or GL_ALPHA_TEST).

According to the manual page, the following boolean states can still be enabled or disabled using these functions:

share|improve this answer
Thanks very much Sam. – dugla Dec 7 '11 at 16:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.