From eaf0aa1f0764dc1b2d9d475c1524891c7e031891 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 17 Oct 2019 17:15:17 -0400 Subject: [PATCH] cogl: Remove unused COGL_FEATURE_DEPTH_RANGE https://gitlab.gnome.org/GNOME/mutter/merge_requests/866 --- cogl/cogl/cogl-types.h | 2 -- cogl/cogl/driver/gl/gl/cogl-driver-gl.c | 3 +-- cogl/cogl/driver/gl/gles/cogl-driver-gles.c | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cogl/cogl/cogl-types.h b/cogl/cogl/cogl-types.h index 376177653..6664f90d3 100644 --- a/cogl/cogl/cogl-types.h +++ b/cogl/cogl/cogl-types.h @@ -122,7 +122,6 @@ typedef struct _CoglTextureVertex CoglTextureVertex; * @COGL_FEATURE_UNSIGNED_INT_INDICES: Set if * %COGL_INDICES_TYPE_UNSIGNED_INT is supported in * cogl_vertex_buffer_indices_new(). - * @COGL_FEATURE_DEPTH_RANGE: cogl_material_set_depth_range() support * @COGL_FEATURE_POINT_SPRITE: Whether * cogl_material_set_layer_point_sprite_coords_enabled() is supported. * @COGL_FEATURE_MAP_BUFFER_FOR_READ: Whether cogl_buffer_map() is @@ -146,7 +145,6 @@ typedef enum COGL_FEATURE_STENCIL_BUFFER = (1 << 10), COGL_FEATURE_PBOS = (1 << 12), COGL_FEATURE_UNSIGNED_INT_INDICES = (1 << 13), - COGL_FEATURE_DEPTH_RANGE = (1 << 14), COGL_FEATURE_POINT_SPRITE = (1 << 18), COGL_FEATURE_MAP_BUFFER_FOR_READ = (1 << 21), COGL_FEATURE_MAP_BUFFER_FOR_WRITE = (1 << 22), diff --git a/cogl/cogl/driver/gl/gl/cogl-driver-gl.c b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c index 8c8d1f5b1..ce91cfcb0 100644 --- a/cogl/cogl/driver/gl/gl/cogl-driver-gl.c +++ b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c @@ -394,8 +394,7 @@ _cogl_driver_update_features (CoglContext *ctx, &ctx->glsl_minor); flags = (COGL_FEATURE_TEXTURE_READ_PIXELS - | COGL_FEATURE_UNSIGNED_INT_INDICES - | COGL_FEATURE_DEPTH_RANGE); + | COGL_FEATURE_UNSIGNED_INT_INDICES); COGL_FLAGS_SET (ctx->features, COGL_FEATURE_ID_UNSIGNED_INT_INDICES, TRUE); diff --git a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c index 5a0d7593d..3415d422b 100644 --- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c +++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c @@ -304,7 +304,6 @@ _cogl_driver_update_features (CoglContext *context, flags |= COGL_FEATURE_OFFSCREEN; /* Note GLES 2 core doesn't support mipmaps for npot textures or * repeat modes other than CLAMP_TO_EDGE. */ - flags |= COGL_FEATURE_DEPTH_RANGE; COGL_FLAGS_SET (context->features, COGL_FEATURE_ID_OFFSCREEN, TRUE); COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ANY_GL, TRUE);