Cosmetics
authorMatthias Clasen <mclasen@redhat.com>
Wed, 1 Feb 2023 17:38:22 +0000 (18:38 +0100)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Feb 2023 17:38:22 +0000 (18:38 +0100)
gdk/gdkgltexture.c

index c5e9f4afb8a2d2cc19195c7119e59f456644bb32..4caaace4421f9ebff6d129511512e9b5163ad02e 100644 (file)
@@ -73,8 +73,8 @@ gdk_gl_texture_dispose (GObject *object)
 }
 
 typedef void (* GLFunc) (GdkGLTexture *self,
-                         gpointer      data,
-                         GdkGLContext *context);
+                         GdkGLContext *context,
+                         gpointer      data);
 
 typedef struct _InvokeData
 {
@@ -95,7 +95,7 @@ gdk_gl_texture_invoke_callback (gpointer data)
   gdk_gl_context_make_current (context);
   glBindTexture (GL_TEXTURE_2D, invoke->self->id);
 
-  invoke->func (invoke->self, invoke->data, context);
+  invoke->func (invoke->self, context, invoke->data);
 
   g_atomic_int_set (&invoke->spinlock, 1);
 
@@ -150,8 +150,8 @@ gdk_gl_texture_find_format (gboolean         use_es,
 
 static inline void
 gdk_gl_texture_do_download (GdkGLTexture *self,
-                            gpointer      download_,
-                            GdkGLContext *context)
+                            GdkGLContext *context,
+                            gpointer      download_)
 {
   GdkTexture *texture = GDK_TEXTURE (self);
   gsize expected_stride;