# glActiveTexture / glGet inconsistency?

**URL:** <https://forums.imgtec.com/t/glactivetexture-glget-inconsistency/888>\
**Category:** PowerVR Insider\
**Created:** [November 1, 2010, 3:51pm UTC](https://forums.imgtec.com/t/glactivetexture-glget-inconsistency/888 "2010-11-01T15:51:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deep](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@deep](https://forums.imgtec.com/u/deep)\
**Post date:** [November 1, 2010, 3:51pm UTC](https://forums.imgtec.com/t/glactivetexture-glget-inconsistency/888/1 "2010-11-01T15:51:38Z")

</div>

In my application I use glGet w/ GL\_MAX\_TEXTURE\_IMAGE\_UNITS to query the number of available texture stages and then use that value to restrict the stages textures can be bound to.&nbsp; Using the OpenGL ES 2.0 PC emulator (2.07.27.0297), this returns 32 on my system, which has a GeForce 8800 Ultra.&nbsp; However, when I call glActiveTexture, I get the following error  
  
In glActiveTexture error: 500 (GL\_INVALID\_ENUM) : texture number is out of range (min: GL\_TEXTURE0), max: GL\_TEXTURE0 + 7, given: GL\_TEXTURE0 + 8  
  
Is there an inconsistency in the value returned for GL\_MAX\_TEXTURE\_IMAGE\_UNITS and the error checking taking place in glActiveTexture?
