gsk: Don't limit filters too much

GL does not allow mipmapping for mag filters,
but it doesn't have a problem with it for min
filters.
This commit is contained in:
Matthias Clasen 2023-02-07 19:22:54 -05:00
parent 52e18eb7fb
commit c74d7afce5

View 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);