From f6c1ffc0c92dc3af1892e7421ee933a496550c68 Mon Sep 17 00:00:00 2001 From: Sergey Lipskiy Date: Fri, 6 Jan 2017 15:16:42 +0700 Subject: [PATCH] Fix MAX_ANISOTROPY parameter --- .../OpenGLContext/opengl_TextureManipulationObjectFactory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Graphics/OpenGLContext/opengl_TextureManipulationObjectFactory.cpp b/src/Graphics/OpenGLContext/opengl_TextureManipulationObjectFactory.cpp index 06440f9b..9b8ab033 100644 --- a/src/Graphics/OpenGLContext/opengl_TextureManipulationObjectFactory.cpp +++ b/src/Graphics/OpenGLContext/opengl_TextureManipulationObjectFactory.cpp @@ -316,7 +316,7 @@ namespace opengl { if (_parameters.maxMipmapLevel.isValid()) glTextureParameteri(handle, GL_TEXTURE_MAX_LEVEL, GLint(_parameters.maxMipmapLevel)); if (_parameters.maxAnisotropy.isValid()) - glTextureParameteri(handle, GL_TEXTURE_MAX_ANISOTROPY_EXT, GLfloat(_parameters.maxMipmapLevel)); + glTextureParameterf(handle, GL_TEXTURE_MAX_ANISOTROPY_EXT, GLfloat(_parameters.maxAnisotropy)); } private: