[gtk+/wip/baedert/gl: 57/96] gl renderer: Remove unused VAO



commit 8f0ea363d59c64e7d7b7e1dce7abb2b688d4281b
Author: Timm Bäder <mail baedert org>
Date:   Thu Nov 23 11:30:05 2017 +0100

    gl renderer: Remove unused VAO

 gsk/gl/gskglrenderer.c |   15 ---------------
 1 files changed, 0 insertions(+), 15 deletions(-)
---
diff --git a/gsk/gl/gskglrenderer.c b/gsk/gl/gskglrenderer.c
index 3ad1ff3..880c108 100644
--- a/gsk/gl/gskglrenderer.c
+++ b/gsk/gl/gskglrenderer.c
@@ -132,8 +132,6 @@ struct _GskGLRenderer
   GArray *render_ops;
 
   GskGLGlyphCache glyph_cache;
-  int full_vao_id;
-  int full_vao_buffer_id;
 
 #ifdef G_ENABLE_DEBUG
   ProfileCounters profile_counters;
@@ -380,16 +378,6 @@ gsk_gl_renderer_realize (GskRenderer  *renderer,
                          GError      **error)
 {
   GskGLRenderer *self = GSK_GL_RENDERER (renderer);
-  GskQuadVertex vertex_data[GL_N_VERTICES] = {
-    { { 0, 0 }, { 0, 0 }, },
-    { { 0, 1 }, { 0, 1 }, },
-    { { 1, 0 }, { 1, 0 }, },
-
-    { { 1, 1 }, { 1, 1 }, },
-    { { 0, 1 }, { 0, 1 }, },
-    { { 1, 0 }, { 1, 0 }, },
-  };
-
 
   self->scale_factor = gdk_window_get_scale_factor (window);
 
@@ -418,9 +406,6 @@ gsk_gl_renderer_realize (GskRenderer  *renderer,
 
   gsk_gl_glyph_cache_init (&self->glyph_cache, self->gl_driver);
 
-  gsk_gl_driver_create_permanent_vao_for_quad (self->gl_driver, GL_N_VERTICES, vertex_data,
-                                               &self->full_vao_id, &self->full_vao_buffer_id);
-
   return TRUE;
 }
 


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