From d17eca052d1267944e94ceb9430a2919fcf18184 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 24 Oct 2023 01:17:43 +0200 Subject: [PATCH] gl: Remove optimization that does the wrong thing Drawing a texture-scale node like a texture node when the filter is set to "linear" doesn't work, because the texture node switches to trilinear when mipmaps are available. --- gsk/gl/gskglrenderjob.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/gsk/gl/gskglrenderjob.c b/gsk/gl/gskglrenderjob.c index 938f9f7fb1..e8f389e25e 100644 --- a/gsk/gl/gskglrenderjob.c +++ b/gsk/gl/gskglrenderjob.c @@ -3718,12 +3718,6 @@ gsk_gl_render_job_visit_texture_scale_node (GskGLRenderJob *job, GskTextureKey key; guint texture_id; - if (filter == GSK_SCALING_FILTER_LINEAR) - { - gsk_gl_render_job_visit_texture (job, texture, bounds); - return; - } - gsk_gl_render_job_untransform_bounds (job, &job->current_clip->rect.bounds, &clip_rect); if (!graphene_rect_intersection (bounds, &clip_rect, &clip_rect)) -- 2.30.2