summaryrefslogtreecommitdiff
path: root/gsk/ngl
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-28 16:41:25 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-03-29 15:17:10 -0400
commitce2c3efc91d2590727cb7681b3038d699efc8abc (patch)
tree8f7a306b7dfa2620b456870cb7897cc9e8c2437c /gsk/ngl
parent2599c5aed36753e24f4b84647fb745bb03d4ff8f (diff)
downloadgtk+-ce2c3efc91d2590727cb7681b3038d699efc8abc.tar.gz
ngl: Improve packing
Pack texture cache entries slightly better. There was a 4 byte hole here.
Diffstat (limited to 'gsk/ngl')
-rw-r--r--gsk/ngl/gskngltexturepoolprivate.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gsk/ngl/gskngltexturepoolprivate.h b/gsk/ngl/gskngltexturepoolprivate.h
index 8b39ec5440..ac8e326eb5 100644
--- a/gsk/ngl/gskngltexturepoolprivate.h
+++ b/gsk/ngl/gskngltexturepoolprivate.h
@@ -58,13 +58,13 @@ struct _GskNglTexture
/* Backpointer to texture (can be cleared asynchronously) */
GdkTexture *user;
+ /* Only used by nine-slice textures */
+ GskNglTextureNineSlice *nine_slice;
+
/* Only used by sliced textures */
GskNglTextureSlice *slices;
guint n_slices;
- /* Only used by nine-slice textures */
- GskNglTextureNineSlice *nine_slice;
-
/* The actual GL texture identifier in some shared context */
guint texture_id;