[gtk/matthiasc/color-profiles] ngl: Cosmetics
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/color-profiles] ngl: Cosmetics
- Date: Sun, 3 Oct 2021 06:03:41 +0000 (UTC)
commit 3b3496411e710940084ba0ddbc1641583068ab92
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 a3e3e6b040..7907b38560 100644
--- a/gsk/ngl/gskngldriver.c
+++ b/gsk/ngl/gskngldriver.c
@@ -44,12 +44,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
@@ -1496,6 +1490,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]