From: Benjamin Otte Date: Mon, 23 Oct 2023 23:17:43 +0000 (+0200) Subject: gl: Remove optimization that does the wrong thing X-Git-Tag: archive/raspbian/4.12.4+ds-3+rpi1^2~21^2^2~22 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d17eca052d1267944e94ceb9430a2919fcf18184;p=gtk4.git 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. --- 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))