diff --git a/gsk/gl/gskgldriver.c b/gsk/gl/gskgldriver.c index 9b49ebed0c..999b3af2cf 100644 --- a/gsk/gl/gskgldriver.c +++ b/gsk/gl/gskgldriver.c @@ -429,6 +429,9 @@ create_texture (GskGLDriver *self, int width = ceilf (fwidth); int height = ceilf (fheight); + g_assert (width > 0); + g_assert (height > 0); + if (width >= self->max_texture_size || height >= self->max_texture_size) {