[gtk/matthiasc/for-master] ngl: Cosmetics



commit bfcc2da2ce9bfad7793521128e001ad49420ed51
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Oct 3 01:13:36 2021 -0400

    ngl: Cosmetics
    
    Move _GskNglTextureState to the one place it is used.

 gsk/ngl/gskngldriver.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
---
diff --git a/gsk/ngl/gskngldriver.c b/gsk/ngl/gskngldriver.c
index 07ac4b3c75..c1a37c0245 100644
--- a/gsk/ngl/gskngldriver.c
+++ b/gsk/ngl/gskngldriver.c
@@ -43,12 +43,6 @@
 #define ATLAS_SIZE 512
 #define MAX_OLD_RATIO 0.5
 
-typedef struct _GskNglTextureState
-{
-  GdkGLContext *context;
-  GLuint        texture_id;
-} GskNglTextureState;
-
 G_DEFINE_TYPE (GskNglDriver, gsk_ngl_driver, G_TYPE_OBJECT)
 
 static guint
@@ -1292,6 +1286,11 @@ gsk_ngl_driver_release_texture_by_id (GskNglDriver *self,
     gsk_ngl_driver_release_texture (self, texture);
 }
 
+typedef struct _GskNglTextureState
+{
+  GdkGLContext *context;
+  GLuint        texture_id;
+} GskNglTextureState;
 
 static void
 create_texture_from_texture_destroy (gpointer data)


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