diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-06-05 12:00:53 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-06-05 12:00:53 +0000 |
commit | d90143d09cb487d9f03a4599261cdfb16ea669db (patch) | |
tree | 485547ab8ca2e2b2c71f71a3c64512891f90e21d /gsk | |
parent | e961943508c92277bd6ebf55fac8306eac3d1510 (diff) | |
download | gtk+-d90143d09cb487d9f03a4599261cdfb16ea669db.tar.gz |
texture atlas: Add a missing initialization
Pointed out by Timm.
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/gl/gskgltextureatlas.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |