Fix T79397: blurry icons at some UI scales, after recent refactor
Solution found by Yevgeny Makarov.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user