summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2020-10-18 22:02:58 +0200
committerRobert Mader <robert.mader@posteo.de>2021-01-30 09:11:45 +0000
commit1bee9e0d53ff8dc3c0be1e469163e3b025795e7f (patch)
tree301a8905a0a8b45fb30050707e1d39bf2d0e4b44
parent408d4c9f091cae6c125846cad853c3afeebf751d (diff)
downloadmutter-1bee9e0d53ff8dc3c0be1e469163e3b025795e7f.tar.gz
cogl/offscreen: Remove alloation_flags struct field
Was unused. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1514>
-rw-r--r--cogl/cogl/cogl-offscreen-private.h2
-rw-r--r--cogl/cogl/driver/gl/cogl-framebuffer-gl.c5
2 files changed, 0 insertions, 7 deletions
diff --git a/cogl/cogl/cogl-offscreen-private.h b/cogl/cogl/cogl-offscreen-private.h
index dabc8697b..ae2f55bd8 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 3a540e4b6..d1eda9206 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