[gtk/wip/chergert/glproto: 676/920] fix warning




commit a2051e39e549eea3441fa9397857689135c1416f
Author: Christian Hergert <chergert redhat com>
Date:   Mon Jan 11 12:35:32 2021 -0800

    fix warning

 gsk/next/gskgldriver.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/gsk/next/gskgldriver.c b/gsk/next/gskgldriver.c
index 498fd0f431..d9d5018d9b 100644
--- a/gsk/next/gskgldriver.c
+++ b/gsk/next/gskgldriver.c
@@ -506,8 +506,6 @@ gsk_next_driver_load_texture (GskNextDriver   *self,
   GdkTexture *downloaded_texture = NULL;
   GdkTexture *source_texture;
   GskGLTexture *t;
-  float width;
-  float height;
 
   g_return_val_if_fail (GSK_IS_NEXT_DRIVER (self), 0);
   g_return_val_if_fail (GDK_IS_TEXTURE (texture), 0);
@@ -558,9 +556,6 @@ gsk_next_driver_load_texture (GskNextDriver   *self,
       source_texture = texture;
     }
 
-  width = gdk_texture_get_width (texture);
-  height = gdk_texture_get_height (texture);
-
   t = g_slice_new0 (GskGLTexture);
   t->width = gdk_texture_get_width (texture);
   t->height = gdk_texture_get_height (texture);


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