From 9925b0561eb10eb2077e867037252f7772f436b8 Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Fri, 4 Aug 2006 18:14:41 +0200 Subject: [PATCH] wined3d: Basetexture anisotropic fix. --- dlls/wined3d/basetexture.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/wined3d/basetexture.c b/dlls/wined3d/basetexture.c index 58fb92df15b..9343416b85e 100644 --- a/dlls/wined3d/basetexture.c +++ b/dlls/wined3d/basetexture.c @@ -430,8 +430,12 @@ void WINAPI IWineD3DBaseTextureImpl_ApplyStateChanges(IWineD3DBaseTexture *iface break; case WINED3DSAMP_MAXANISOTROPY: *state = samplerStates[textureObjectSamplerStates[i].state]; - glTexParameteri(textureDimensions, GL_TEXTURE_MAX_ANISOTROPY_EXT, *state); - checkGLcall("glTexParameteri GL_TEXTURE_MAX_ANISOTROPY_EXT ..."); + if (GL_SUPPORT(EXT_TEXTURE_FILTER_ANISOTROPIC)) { + glTexParameteri(textureDimensions, GL_TEXTURE_MAX_ANISOTROPY_EXT, *state); + checkGLcall("glTexParameteri GL_TEXTURE_MAX_ANISOTROPY_EXT ..."); + } else { + WARN("Unsupported in local OpenGL implementation: glTexParameteri GL_TEXTURE_MAX_ANISOTROPY_EXT\n"); + } break; case WINED3DFUNC_UNIMPLEMENTED: /* unimplemented */ TRACE("(%p) : stub\n", This);