projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd5d150
)
gl: Free all tracked buffers
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 5 Jun 2023 02:17:56 +0000
(22:17 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 5 Jun 2023 02:17:56 +0000
(22:17 -0400)
This was overlooked when the number of tracked
buffers was bumped from 2 to 4 in
46e3454eb7730e4
.
gdk/gdkglcontext.c
patch
|
blob
|
history
diff --git
a/gdk/gdkglcontext.c
b/gdk/gdkglcontext.c
index f9dd8128bbb942dc6752312a69dd0e5c7ed357a1..97ffe71a903a37601a7f86453a9145f5e6486603 100644
(file)
--- a/
gdk/gdkglcontext.c
+++ b/
gdk/gdkglcontext.c
@@
-173,12
+173,8
@@
static GPrivate thread_current_context = G_PRIVATE_INIT (unref_unmasked);
static void
gdk_gl_context_clear_old_updated_area (GdkGLContext *context)
{
- int i;
-
- for (i = 0; i < 2; i++)
- {
- g_clear_pointer (&context->old_updated_area[i], cairo_region_destroy);
- }
+ for (unsigned int i = 0; i < GDK_GL_MAX_TRACKED_BUFFERS; i++)
+ g_clear_pointer (&context->old_updated_area[i], cairo_region_destroy);
}
static void