Commit: c565f16afbf1733c1ca0cd2e02d107224fd97631 Author: Brecht Van Lommel Date: Fri Jul 31 12:39:38 2020 +0200 Branches: blender-v2.90-release https://developer.blender.org/rBc565f16afbf1733c1ca0cd2e02d107224fd97631
Fix T79397: blurry icons at some UI scales, after recent refactor Solution found by Yevgeny Makarov. =================================================================== 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 4c847236f09..f8d38b489e8 100644 --- a/source/blender/gpu/intern/gpu_texture.c +++ b/source/blender/gpu/intern/gpu_texture.c @@ -2195,7 +2195,7 @@ void GPU_samplers_init(void) glGenSamplers(1, &GG.icon_sampler); glSamplerParameteri(GG.icon_sampler, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_NEAREST); glSamplerParameteri(GG.icon_sampler, GL_TEXTURE_MAG_FILTER, GL_LINEAR); - glSamplerParameteri(GG.icon_sampler, GL_TEXTURE_LOD_BIAS, -0.5f); + glSamplerParameterf(GG.icon_sampler, GL_TEXTURE_LOD_BIAS, -0.5f); } void GPU_sampler_icon_bind(int unit) _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
