PDA

View Full Version : EXT_lod_bias & display list problem



ScottManDeath
05-14-2002, 04:54 AM
Hi

I have a problem with using the lod_bias extension in conjunction with display lists.
I use following code:

if(ext->has_ext_texture_lod_bias)
glTexEnvf GL_TEXTURE_FILTER_CONTROL_EXT,GL_TEXTURE_LOD_BIAS_ EXT,5.0f);
float f=11111.0f;// a unlikely number
glGetTexEnvfv(GL_TEXTURE_FILTER_CONTROL_EXT,GL_TEX TURE_LOD_BIAS_EXT,&f);
printf("%f\n",f);

When I call it in immediate mode all works fine and the printed float shows 5.0f but when i nest in to a display list, the float shows 0.0f.
I searched the forum and found: http://www.opengl.org/discussion_boards/ubb/Forum3/HTML/006114.html

The hardware is a TNT2 M64 with 28.80 drivers and a GF4TI4600 with 28.32
Both show the problem.

I think,as mentioned in the other thread that this may be a drivers bug ??

Perhaps someone can tell me ?

Bye
ScottManDeath

[This message has been edited by ScottManDeath (edited 05-14-2002).]

tcobbs
05-14-2002, 11:14 AM
Since glGet routines aren't compiled into the display list, your glGetTexEnvfv is likely returning to you the value for that setting before your call to glNewList. When you set the setting, you are setting it in the list, but that shouldn't effect OpenGL's current state outside the list. I'm not sure if this is the way it's supposed to behave, though.

mcraighead
05-14-2002, 11:29 AM
That's right about the Get, but there is in fact a bug with this enumerant and display lists that was fixed fairly recently.

- Matt

ScottManDeath
05-15-2002, 03:03 AM
Originally posted by mcraighead:
That's right about the Get, but there is in fact a bug with this enumerant and display lists that was fixed fairly recently.

- Matt

Hi

thank you for you help.I`ll wait for a new driver and then world will be ok http://www.opengl.org/discussion_boards/ubb/wink.gif

Bye
ScottManDeath

ScottManDeath
05-15-2002, 04:02 AM
Hi

I installed beta 29.40 and it works http://www.opengl.org/discussion_boards/ubb/biggrin.gif http://www.opengl.org/discussion_boards/ubb/biggrin.gif http://www.opengl.org/discussion_boards/ubb/biggrin.gif http://www.opengl.org/discussion_boards/ubb/biggrin.gif http://www.opengl.org/discussion_boards/ubb/biggrin.gif

Bye
ScottManDeath