diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-07-31 13:39:38 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-07-31 13:39:58 +0300 |
commit | c565f16afbf1733c1ca0cd2e02d107224fd97631 (patch) | |
tree | cea2614482d49a7e0142ae177a4b50efeb07eed2 /source | |
parent | 627b294317e953ee4e2922a3df243df3b9b1196e (diff) |
Fix T79397: blurry icons at some UI scales, after recent refactor
Solution found by Yevgeny Makarov.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/gpu/intern/gpu_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |