Anisotropic filter

Shouldn’t this line put the currently bound texture’s aniso level in the variable “level”?

glGetTexParameterfv(GL_TEXTURE_2D,GL_TEXTURE_MAX_ANISOTROPY_EXT,&level);

Althought texturing works it gives a GL_INVALID_ENUM :confused:

Is this a bug in the drivers? This is mentioned in the extension doc.

ATi 8500, cats 4.3

Oh well… Since nobody answered I made a small test demo just to find out that it was fixed in catalyst 4.4…

Here’s the code with executable (nehe-based):

test

Press ‘A’ to see the result of that command in the console.

Try using the following line of code:

glGetIntegerv
GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT,&maxanisotropy);

That gives 16, which is the maximum my card supports. But that has always worked.

Please ignore the previous post…The code I wrote does a different thing.
Sorry.