From d9f0d937d9764bdfb126da511a769c126f6d644d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 17 Sep 2021 09:49:31 +0200 Subject: [PATCH] clutter/features: Remove 'offscreen' feature It's also unused. Offscreen framebuffers are still used however, but it's assumed to exist. Part-of: --- clutter/clutter/clutter-enums.h | 2 -- clutter/clutter/clutter-feature.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/clutter/clutter/clutter-enums.h b/clutter/clutter/clutter-enums.h index 2ae6d50bc..3bfe3412b 100644 --- a/clutter/clutter/clutter-enums.h +++ b/clutter/clutter/clutter-enums.h @@ -900,7 +900,6 @@ typedef enum /*< prefix=CLUTTER_SCROLL >*/ * ClutterFeatureFlags: * @CLUTTER_FEATURE_STAGE_STATIC: Set if stage size if fixed (i.e framebuffer) * @CLUTTER_FEATURE_SHADERS_GLSL: Set if the backend supports GLSL shaders. - * @CLUTTER_FEATURE_OFFSCREEN: Set if the backend supports offscreen rendering. * @CLUTTER_FEATURE_STAGE_MULTIPLE: Set if multiple stages are supported. * @CLUTTER_FEATURE_SWAP_EVENTS: Set if the GLX_INTEL_swap_event is supported. * @@ -913,7 +912,6 @@ typedef enum { CLUTTER_FEATURE_STAGE_STATIC = (1 << 6), CLUTTER_FEATURE_SHADERS_GLSL = (1 << 9), - CLUTTER_FEATURE_OFFSCREEN = (1 << 10), CLUTTER_FEATURE_STAGE_MULTIPLE = (1 << 11), CLUTTER_FEATURE_SWAP_EVENTS = (1 << 12) } ClutterFeatureFlags; diff --git a/clutter/clutter/clutter-feature.c b/clutter/clutter/clutter-feature.c index 9cda1d075..84e2defa1 100644 --- a/clutter/clutter/clutter-feature.c +++ b/clutter/clutter/clutter-feature.c @@ -64,8 +64,6 @@ clutter_features_from_cogl (void) clutter_flags |= CLUTTER_FEATURE_SHADERS_GLSL; - clutter_flags |= CLUTTER_FEATURE_OFFSCREEN; - return clutter_flags; }