# GL\_POINT\_SIZE\_ARRAY\_OES related BUG under Windows

**URL:** <https://forums.imgtec.com/t/gl-point-size-array-oes-related-bug-under-windows/997>\
**Category:** PowerVR Insider\
**Created:** [February 9, 2011, 3:51pm UTC](https://forums.imgtec.com/t/gl-point-size-array-oes-related-bug-under-windows/997 "2011-02-09T15:51:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dante](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@dante](https://forums.imgtec.com/u/dante)\
**Post date:** [February 9, 2011, 3:51pm UTC](https://forums.imgtec.com/t/gl-point-size-array-oes-related-bug-under-windows/997/1 "2011-02-09T15:51:45Z")

</div>

First call with GL\_POINT\_SIZE\_ARRAY\_OES i.e. glIsEnabled(GL\_POINT\_SIZE\_ARRAY\_OES) causes an instability in Windows emulation libraries 2.07.27.0484.  
Instead of GLboolean value, above call returns 0xf0, but the glGetError() returns GL\_NO\_ERROR.  
Then, first subsequent call to glTexImage2D with correct parameter values returns GL\_INVALID\_ENUM.  
Finally any subsequent call related to GL\_POINT\_SIZE\_ARRAY\_OES and glTexImage2D does not cause any problems.

  

  

  

Run this code after initialization:
  

&nbsp;
  

GLboolean result = glIsEnabled(GL\_POINT\_SIZE\_ARRAY\_OES); //the value of result is always 0xf0, you can check if it is GL\_TRUE or GL\_FALSE - in this case it is not.
  

&nbsp;
  

GLuint tmp = 0;
  

glGenTextures(1, &tmp);
  

glBindTexture(GL\_TEXTURE\_2D, tmp);
  

glTexImage2D(GL\_TEXTURE\_2D, 0, GL\_RGBA, 0, 0, 0, GL\_RGBA, GL\_UNSIGNED\_BYTE, 0);
  

GLenum error = glGetError(); //the value of error will be GL\_INVALID\_ENUM;
  

glTexImage2D(GL\_TEXTURE\_2D, 0, GL\_RGBA, 0, 0, 0, GL\_RGBA, GL\_UNSIGNED\_BYTE, 0);
  

error = glGetError(); //the value of error will be GL\_NO\_ERROR
  

&nbsp;
  

This is also the workaround of this issue. After execution of this snippet you can use calls related to GL\_POINT\_SIZE\_ARRAY\_OES without problems.
  

&nbsp;
  

Best Regards.

---

<div class="post-metadata">

**Author:** ![jacekc](https://avatars.discourse-cdn.com/v4/letter/j/ccd318/32.png) [@jacekc](https://forums.imgtec.com/u/jacekc)\
**Post date:** [February 10, 2011, 8:28am UTC](https://forums.imgtec.com/t/gl-point-size-array-oes-related-bug-under-windows/997/2 "2011-02-10T08:28:56Z")

</div>

thanks very much for you report we will be looking at that shortly.
