From 6655177a0bb1cb9bd4f23f9a4373691e82f062f7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 1 Feb 2023 18:38:22 +0100 Subject: [PATCH] Cosmetics --- gdk/gdkgltexture.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gdk/gdkgltexture.c b/gdk/gdkgltexture.c index c5e9f4afb8..4caaace442 100644 --- a/gdk/gdkgltexture.c +++ b/gdk/gdkgltexture.c @@ -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;