[mutter] cogl/offscreen: Remove alloation_flags struct field



commit 1bee9e0d53ff8dc3c0be1e469163e3b025795e7f
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Sun Oct 18 22:02:58 2020 +0200

    cogl/offscreen: Remove alloation_flags struct field
    
    Was unused.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1514>

 cogl/cogl/cogl-offscreen-private.h        | 2 --
 cogl/cogl/driver/gl/cogl-framebuffer-gl.c | 5 -----
 2 files changed, 7 deletions(-)
---
diff --git a/cogl/cogl/cogl-offscreen-private.h b/cogl/cogl/cogl-offscreen-private.h
index dabc8697ba..ae2f55bd89 100644
--- a/cogl/cogl/cogl-offscreen-private.h
+++ b/cogl/cogl/cogl-offscreen-private.h
@@ -51,8 +51,6 @@ struct _CoglOffscreen
   CoglTexture *texture;
   int texture_level;
 
-  CoglOffscreenAllocateFlags allocation_flags;
-
   /* FIXME: _cogl_offscreen_new_with_texture_full should be made to use
    * fb->config to configure if we want a depth or stencil buffer so
    * we can get rid of these flags */
diff --git a/cogl/cogl/driver/gl/cogl-framebuffer-gl.c b/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
index 3a540e4b6e..d1eda92061 100644
--- a/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
+++ b/cogl/cogl/driver/gl/cogl-framebuffer-gl.c
@@ -831,11 +831,6 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
           ctx->have_last_offscreen_allocate_flags = TRUE;
         }
 
-      /* Save the flags we managed to successfully allocate the
-       * renderbuffers with in case we need to make renderbuffers for a
-       * GLES2 context later */
-      offscreen->allocation_flags = flags;
-
       return TRUE;
     }
   else


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