From: Matthias Clasen Date: Wed, 15 Mar 2023 19:45:01 +0000 (-0400) Subject: gsk: Fix texture slicing X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~547^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2322fecf3b0ab4674f83d35e1e4ffc33b31030c9;p=gtk4.git gsk: Fix texture slicing We were just returning NULL for slices here, which wasn't the intention. --- diff --git a/gsk/gl/gskgldriverprivate.h b/gsk/gl/gskgldriverprivate.h index 2b39217919..e1f30c2d2d 100644 --- a/gsk/gl/gskgldriverprivate.h +++ b/gsk/gl/gskgldriverprivate.h @@ -243,7 +243,7 @@ gsk_gl_driver_slice_texture (GskGLDriver *self, if ((t = gdk_texture_get_render_data (texture, self))) { - if (min_cols == 0 && min_rows == 0) + if (min_cols == 0 && min_rows == 0 && t->slices) { *out_slices = t->slices; *out_n_slices = t->n_slices;