View previous topic :: View next topic |
Author |
Message |
Zardoz
Joined: 28 May 2011 Posts: 17 Location: Spain
|
Posted: Thu Jun 02, 2011 5:33 pm Post subject: Missing GL_TEXTURE_MAX_ANISOTROPY_EXT in GLEnum ? |
|
|
It's missing GL_TEXTURE_MAX_ANISOTROPY_EXT and GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT . Or I must do anisotropic texture filtering by other method ?
I get a :
Code: | src/display/sdl/material.d(99): Error: undefined identifier GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT
src/display/sdl/material.d(102): Error: undefined identifier GL_TEXTURE_MAX_ANISOTROPY_EXT |
Code :
Code: |
if (DerelictGL.isExtensionLoaded("GL_EXT_texture_filter_anisotropic")) {
GLfloat ansio = 1.0f;
glGetFloatv(GL_MAX_TEXTURE_MAX_ANISOTROPY_EXT, &ansio);
ansio = (ansio < _anisotropy) ? ansio : _anisotropy;
// Cap anisotropy level to max soported by hardware
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAX_ANISOTROPY_EXT, ansio );
}
|
|
|
Back to top |
|
|
aldacron
Joined: 05 May 2004 Posts: 1322 Location: Seoul, South Korea
|
|
Back to top |
|
|
Zardoz
Joined: 28 May 2011 Posts: 17 Location: Spain
|
Posted: Fri Jun 03, 2011 2:24 am Post subject: |
|
|
OUCH!!!! |
|
Back to top |
|
|
|