glGetInt(GL_GET_POLYGON_RAM_COUNT, &count) not working.

Post Reply
Sylus101
Posts: 179
Joined: Wed Dec 24, 2008 5:08 am

glGetInt(GL_GET_POLYGON_RAM_COUNT, &count) not working.

Post by Sylus101 » Wed Oct 21, 2009 5:24 pm

I'm using libnds 1.3.8 and glGetInt() does not appear to be retrieving any information for either of these enum values:

GL_GET_VERTEX_RAM_COUNT
GL_GET_POLYGON_RAM_COUNT

I ran into the issue myself and saw that it occurs the same in the BoxTest example.
-Sylus "Not Stylus..." McFrederickson

Come visit my web site.

RyouArashi
Posts: 29
Joined: Sun Mar 29, 2009 9:23 pm

Re: glGetInt(GL_GET_POLYGON_RAM_COUNT, &count) not working.

Post by RyouArashi » Wed Oct 21, 2009 5:44 pm

no$gba (and maybe other emulators as well) don't emulate this,
but it works fine on hardware (just tested the BoxTest example on M3DS Real).

Note: In the BoxTest example the printfs for polygon and vertex count
use "%i", which give incorrect output when the number of digits changes.
It should be something like "%4i".

Sylus101
Posts: 179
Joined: Wed Dec 24, 2008 5:08 am

Re: glGetInt(GL_GET_POLYGON_RAM_COUNT, &count) not working.

Post by Sylus101 » Wed Oct 21, 2009 5:56 pm

My fault, sorry about this one. My card is currently broken, so I'm out of the habit of double checking. A mod can surely remove this post.
-Sylus "Not Stylus..." McFrederickson

Come visit my web site.

WinterMute
Site Admin
Posts: 1845
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: glGetInt(GL_GET_POLYGON_RAM_COUNT, &count) not working.

Post by WinterMute » Wed Oct 21, 2009 8:22 pm

s'ok, this kind of thing is worth leaving for future reference.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests