[gtk/wip/chergert/glproto: 900/920] texture size should be int




commit c01e16ffed7ec2f23b0bfb6e24dec7a1903f826c
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]