[gtk/wip/chergert/glproto: 912/920] use fast int type




commit c6d4e4bfc8167f8ecf0b0ddbcf8602c2389bb855
Author: Christian Hergert <chergert redhat com>
Date:   Thu Feb 4 17:09:01 2021 -0800

    use fast int type
    
    these use integer promotion anyway

 gsk/next/gskglcommandqueue.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gsk/next/gskglcommandqueue.c b/gsk/next/gskglcommandqueue.c
index a832b080b9..24b04be921 100644
--- a/gsk/next/gskglcommandqueue.c
+++ b/gsk/next/gskglcommandqueue.c
@@ -721,10 +721,10 @@ apply_uniform (gconstpointer    dataptr,
 }
 
 static inline void
-apply_viewport (guint16 *current_width,
-                guint16 *current_height,
-                guint16 width,
-                guint16 height)
+apply_viewport (guint *current_width,
+                guint *current_height,
+                guint  width,
+                guint  height)
 {
   if G_UNLIKELY (*current_width != width || *current_height != height)
     {
@@ -785,8 +785,8 @@ gsk_gl_command_queue_execute (GskGLCommandQueue    *self,
   GLuint vao_id;
   int next_batch_index;
   guint program = 0;
-  guint16 width = 0;
-  guint16 height = 0;
+  guint width = 0;
+  guint height = 0;
   guint n_binds = 0;
   guint n_fbos = 0;
   guint n_uniforms = 0;


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