From 1bee9e0d53ff8dc3c0be1e469163e3b025795e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Sun, 18 Oct 2020 22:02:58 +0200 Subject: [PATCH] cogl/offscreen: Remove alloation_flags struct field Was unused. Part-of: --- 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 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