gl: Remove optimization that does the wrong thing
authorBenjamin Otte <otte@redhat.com>
Mon, 23 Oct 2023 23:17:43 +0000 (01:17 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 17 Nov 2023 19:52:07 +0000 (14:52 -0500)
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

index 938f9f7fb1abdfcfdc2180a38f4779550792a4df..e8f389e25eebf77532a92e803fd6cea04c371a2a 100644 (file)
@@ -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))