gsk: Don't limit filters too much
authorMatthias Clasen <mclasen@redhat.com>
Wed, 8 Feb 2023 00:22:54 +0000 (19:22 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 11 Feb 2023 14:29:03 +0000 (09:29 -0500)
GL does not allow mipmapping for mag filters,
but it doesn't have a problem with it for min
filters.

gsk/gl/gskglcommandqueue.c

index 8a1f9c84b0c1d47d9eb79793cf0be0f1e417350b..37f3243c4b38993feefa1612699d067fedc53a89 100644 (file)
@@ -1439,8 +1439,7 @@ gsk_gl_command_queue_upload_texture (GskGLCommandQueue *self,
 
   g_assert (GSK_IS_GL_COMMAND_QUEUE (self));
   g_assert (!GDK_IS_GL_TEXTURE (texture));
-  g_assert (min_filter == GL_LINEAR || min_filter == GL_NEAREST);
-  g_assert (mag_filter == GL_LINEAR || min_filter == GL_NEAREST);
+  g_assert (mag_filter == GL_LINEAR || mag_filter == GL_NEAREST);
 
   width = gdk_texture_get_width (texture);
   height = gdk_texture_get_height (texture);