diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-20 19:49:59 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-12-20 19:49:59 +0400 |
commit | e7485d46cd17f0a7aa376b40a2a6091315d7d1e6 (patch) | |
tree | 70084b5ad476f9ae29b4048d477c90f35aceb26f /source/blender/gpu | |
parent | 438b19e94aa9615ca9163cad2d2d86fbeccdfd1a (diff) |
Fix #33630: DDS compressed textures were not actually using mipmaps for minification.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c index 88a9122e88c..432c54b9c48 100644 --- a/source/blender/gpu/intern/gpu_draw.c +++ b/source/blender/gpu/intern/gpu_draw.c @@ -768,7 +768,7 @@ int GPU_upload_dxt_texture(ImBuf *ibuf) return FALSE; } - glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); + glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, gpu_get_mipmap_filter(0)); glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, gpu_get_mipmap_filter(1)); glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE); |