From d90143d09cb487d9f03a4599261cdfb16ea669db Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 5 Jun 2019 12:00:53 +0000 Subject: [PATCH] texture atlas: Add a missing initialization Pointed out by Timm. --- gsk/gl/gskgltextureatlas.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gsk/gl/gskgltextureatlas.c b/gsk/gl/gskgltextureatlas.c index fb27bbb7ed..acc6346c9c 100644 --- a/gsk/gl/gskgltextureatlas.c +++ b/gsk/gl/gskgltextureatlas.c @@ -136,6 +136,8 @@ gsk_gl_texture_atlases_pack (GskGLTextureAtlases *atlases, g_assert (width < ATLAS_SIZE); g_assert (height < ATLAS_SIZE); + atlas = NULL; + for (i = 0; i < atlases->atlases->len; i++) { atlas = g_ptr_array_index (atlases->atlases, i);