# Bugs in PVRFrame

**URL:** <https://forums.imgtec.com/t/bugs-in-pvrframe/1704>\
**Category:** PowerVR Insider\
**Created:** [March 12, 2013, 4:47pm UTC](https://forums.imgtec.com/t/bugs-in-pvrframe/1704 "2013-03-12T16:47:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![warmi](https://avatars.discourse-cdn.com/v4/letter/w/7ea924/32.png) [@warmi](https://forums.imgtec.com/u/warmi)\
**Post date:** [March 12, 2013, 4:47pm UTC](https://forums.imgtec.com/t/bugs-in-pvrframe/1704/1 "2013-03-12T16:47:47Z")

</div>

Using latest PVRFrame (r2) when I execute the following code on OSX :  
  
  
  
glGetIntegerv(GL\_MAX\_VARYING\_VECTORS,(GLint \*)&mMaxVaryingVectors);GL\_ErrorCheck();  
  
glGetIntegerv(GL\_MAX\_FRAGMENT\_UNIFORM\_VECTORS,(GLint \*)&mMaxFragmentUniformVectors);GL\_ErrorCheck();  
  
glGetIntegerv(GL\_MAX\_VERTEX\_UNIFORM\_VECTORS,(GLint \*)&mMaxVertexUniformVectors);GL\_ErrorCheck();  
  
  
  
I get errors in the form of:  
  
  
  
(Error) The following error occurred in glGetIntegerv: (500) GL\_INVALID\_ENUM  
  
12:36:27 glError:0x0500  
  
( repeated for each glGetIntegerv query)  
  
  
  
This only occurs for certain GL\_MAX enums , majority of them work fine.  
  
  
  
The same code works just fine with no errors on my Win32 machine with Win32 version of PVRFrame.  
  
  
  
My MacBook pro is equipped with :  
  
Chipset Model: NVIDIA GeForce GT 330M  
  
  
  
Also , somewhat unrelated question.  
  
  
  
The PVRFrame GUI allows for debug wireframe rendering … can I enable the same functionality using just emulation libs ?

---

<div class="post-metadata">

**Author:** ![ChrisPenrose](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@ChrisPenrose](https://forums.imgtec.com/u/ChrisPenrose)\
**Post date:** [March 13, 2013, 9:40am UTC](https://forums.imgtec.com/t/bugs-in-pvrframe/1704/2 "2013-03-13T09:40:04Z")

</div>

Hi Warmi  
  
  
  
Since OSX doesn’t support OpenGL 4 we are limited by how much we can emulate. The emulator is trying to pass those tokens straight through to OpenGL and since they are not supported it’s reporting errors. I’ll look into supporting those tokens on OpenGL 3 systems in the future.

> The PVRFrame GUI allows for debug wireframe rendering ... can I enable the same functionality using just emulation libs ?

  
Not currently but I'll add a feature request for it!

---

<div class="post-metadata">

**Author:** ![warmi](https://avatars.discourse-cdn.com/v4/letter/w/7ea924/32.png) [@warmi](https://forums.imgtec.com/u/warmi)\
**Post date:** [April 10, 2013, 5:51pm UTC](https://forums.imgtec.com/t/bugs-in-pvrframe/1704/3 "2013-04-10T17:51:59Z")

</div>

Actually, there is no really need for direct enabling wireframe rendering … I never used the GUI tool that comes with the SDK so I didn’t realize I can toggle this settings thru that tool …
