[gtk/wip/chergert/glproto: 399/493] use fast int type




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