[gtk/wip/matthiasc/shared-glyph-cache] texture atlas: Add a missing initialization



commit d90143d09cb487d9f03a4599261cdfb16ea669db
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jun 5 12:00:53 2019 +0000

    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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]