projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e50209a
)
gdk: Add an assertion
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 14 May 2023 11:46:44 +0000
(07:46 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sun, 14 May 2023 11:50:11 +0000
(07:50 -0400)
We simply overwrite any previous region,
so assert that the field was NULL before.
gdk/gdktexture.c
patch
|
blob
|
history
diff --git
a/gdk/gdktexture.c
b/gdk/gdktexture.c
index b392b90222be21ef5e77dcdb74a8ccf5913d0f68..8c8de2d42d6cd768d3ad52a015b6240ca6a54433 100644
(file)
--- a/
gdk/gdktexture.c
+++ b/
gdk/gdktexture.c
@@
-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);