EXT_lod_bias & display list problem

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_TEXTURE_LOD_BIAS_EXT,&f);
printf("%f
",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).]

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.

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

Originally posted by mcraighead:
[b]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[/b]

Hi

thank you for you help.I`ll wait for a new driver and then world will be ok

Bye
ScottManDeath

Hi

I installed beta 29.40 and it works

Bye
ScottManDeath