[gtk/wip/chergert/glproto: 387/493] texture size should be int




commit 0ca7477330cc12e591c5806535d66a8b6613eeea
Author: Christian Hergert <chergert redhat com>
Date:   Wed Feb 3 22:53:22 2021 -0800

    texture size should be int

 gsk/next/gskgltexturepool.c        | 4 ++--
 gsk/next/gskgltexturepoolprivate.h | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gsk/next/gskgltexturepool.c b/gsk/next/gskgltexturepool.c
index 677238e3b7..198cb963c8 100644
--- a/gsk/next/gskgltexturepool.c
+++ b/gsk/next/gskgltexturepool.c
@@ -141,8 +141,8 @@ gsk_gl_texture_pool_put (GskGLTexturePool *self,
 
 GskGLTexture *
 gsk_gl_texture_pool_get (GskGLTexturePool *self,
-                         float             width,
-                         float             height,
+                         int               width,
+                         int               height,
                          int               min_filter,
                          int               mag_filter,
                          gboolean          always_create)
diff --git a/gsk/next/gskgltexturepoolprivate.h b/gsk/next/gskgltexturepoolprivate.h
index 0560c22375..1410fa30d6 100644
--- a/gsk/next/gskgltexturepoolprivate.h
+++ b/gsk/next/gskgltexturepoolprivate.h
@@ -70,8 +70,8 @@ struct _GskGLTexture
   /* The actual GL texture identifier in some shared context */
   guint texture_id;
 
-  float width;
-  float height;
+  int width;
+  int height;
   int min_filter;
   int mag_filter;
 
@@ -82,8 +82,8 @@ struct _GskGLTexture
 void                         gsk_gl_texture_pool_init      (GskGLTexturePool *self);
 void                         gsk_gl_texture_pool_clear     (GskGLTexturePool *self);
 GskGLTexture                *gsk_gl_texture_pool_get       (GskGLTexturePool *self,
-                                                            float             width,
-                                                            float             height,
+                                                            int               width,
+                                                            int               height,
                                                             int               min_filter,
                                                             int               mag_filter,
                                                             gboolean          always_create);


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