mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-09-20 05:50:11 +00:00
gdk: Add an assertion
We simply overwrite any previous region, so assert that the field was NULL before.
This commit is contained in:
parent
e50209a535
commit
51ad2a55a8
@ -711,6 +711,8 @@ gdk_texture_set_diff (GdkTexture *self,
|
||||
GdkTexture *previous,
|
||||
cairo_region_t *diff)
|
||||
{
|
||||
g_assert (self->diff_to_previous == NULL);
|
||||
|
||||
self->previous_texture = previous;
|
||||
self->diff_to_previous = diff;
|
||||
g_atomic_pointer_set (&previous->next_texture, self);
|
||||
|
Loading…
Reference in New Issue
Block a user