Commit: 82e0419cc0592ad833ecab07532f50906be7a0b6
Author: Clément Foucault
Date: Sat Aug 12 17:21:35 2017 +0200
Branches: blender2.8
https://developer.blender.org/rB82e0419cc0592ad833ecab07532f50906be7a0b6
Eevee: Fix the AO problem around object edges.
This was due to missing GL_TEXTURE_MAG_FILTER.
===================================================================
M source/blender/gpu/intern/gpu_texture.c
===================================================================
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);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs