Eevee: Fix the AO problem around object edges.

This was due to missing GL_TEXTURE_MAG_FILTER.
This commit is contained in:
Clément Foucault 2017-08-12 17:21:35 +02:00
parent 2087158d5b
commit 82e0419cc0
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}