diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2017-08-12 18:21:35 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2017-08-13 15:30:47 +0300 |
commit | 82e0419cc0592ad833ecab07532f50906be7a0b6 (patch) | |
tree | ff01a429a6a0f8765ad27385db9ae944a4e2be93 /source/blender/gpu/intern/gpu_texture.c | |
parent | 2087158d5b5debd7f943fd1c83dd1e6254db2c2a (diff) |
Eevee: Fix the AO problem around object edges.
This was due to missing GL_TEXTURE_MAG_FILTER.
Diffstat (limited to 'source/blender/gpu/intern/gpu_texture.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_texture.c b/source/blender/gpu/intern/gpu_texture.c index 48ed3fc1de1..d7d90a28a8c 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -874,6 +874,9 @@ void GPU_texture_mipmap_mode(GPUTexture *tex, bool use_mipmap, bool use_filter) : use_mipmap ? GL_NEAREST_MIPMAP_LINEAR : GL_NEAREST; glTexParameteri(tex->target_base, GL_TEXTURE_MIN_FILTER, mipmap); + GLenum filter = use_filter ? GL_LINEAR : GL_NEAREST; + glTexParameteri(tex->target_base, GL_TEXTURE_MAG_FILTER, filter); + if (tex->number != 0) glActiveTexture(GL_TEXTURE0); } |