From 97cff9a1992826540b135e71ab2797b17186e6d5 Mon Sep 17 00:00:00 2001 From: Juha Aatrokoski Date: Thu, 4 Jul 2019 10:49:04 +0300 Subject: [PATCH] compositor: Fix GL texture filter Bug: 15676 Between versions 4.13.1 and 4.13.2 the GL_NEAREST filter (used on the deepest levels of desktop zoom) stopped working, and GL_LINEAR was used instead. Fix by setting GL_TEXTURE_MIN_FILTER in addition to GL_TEXTURE_MAG_FILTER, like was done in version 4.13.1; apparently the former needs to be correctly configured for the latter to take effect. Signed-off-by: Juha Aatrokoski --- src/compositor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index 98999946..165601f3 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1636,6 +1636,9 @@ redraw_glx_texture (ScreenInfo *screen_info, XserverRegion region, gushort buffe double x = XFixedToDouble (xp) / (screen_info->width * zoom); double y = XFixedToDouble (yp) / (screen_info->height * zoom); + glTexParameteri(screen_info->texture_type, + GL_TEXTURE_MIN_FILTER, + screen_info->texture_filter); glTexParameteri(screen_info->texture_type, GL_TEXTURE_MAG_FILTER, screen_info->texture_filter); -- 2.21.0