[mutter] cogl: Remove unused COGL_FEATURE_UNSIGNED_INT_INDICES



commit eb3ffeff0a5b7780367847d1d4c6e0de08bdf63c
Author: Adam Jackson <ajax redhat com>
Date:   Thu Oct 17 19:53:24 2019 -0400

    cogl: Remove unused COGL_FEATURE_UNSIGNED_INT_INDICES
    
    https://gitlab.gnome.org/GNOME/mutter/merge_requests/866

 cogl/cogl/cogl-types.h                      | 4 ----
 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(+), 7 deletions(-)
---
diff --git a/cogl/cogl/cogl-types.h b/cogl/cogl/cogl-types.h
index c27bc8d93..a5a09a04e 100644
--- a/cogl/cogl/cogl-types.h
+++ b/cogl/cogl/cogl-types.h
@@ -118,9 +118,6 @@ typedef struct _CoglTextureVertex       CoglTextureVertex;
  * @COGL_FEATURE_FOUR_CLIP_PLANES: At least 4 clip planes available
  * @COGL_FEATURE_STENCIL_BUFFER: Stencil buffer support
  * @COGL_FEATURE_PBOS: PBO support
- * @COGL_FEATURE_UNSIGNED_INT_INDICES: Set if
- *     %COGL_INDICES_TYPE_UNSIGNED_INT is supported in
- *     cogl_vertex_buffer_indices_new().
  *
  * Flags for the supported features.
  *
@@ -134,7 +131,6 @@ typedef enum
   COGL_FEATURE_FOUR_CLIP_PLANES       = (1 << 9),
   COGL_FEATURE_STENCIL_BUFFER         = (1 << 10),
   COGL_FEATURE_PBOS                  = (1 << 12),
-  COGL_FEATURE_UNSIGNED_INT_INDICES   = (1 << 13),
 } CoglFeatureFlags;
 
 /**
diff --git a/cogl/cogl/driver/gl/gl/cogl-driver-gl.c b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c
index d0152f702..573fb4ecb 100644
--- a/cogl/cogl/driver/gl/gl/cogl-driver-gl.c
+++ b/cogl/cogl/driver/gl/gl/cogl-driver-gl.c
@@ -393,8 +393,7 @@ _cogl_driver_update_features (CoglContext *ctx,
                                   &ctx->glsl_major,
                                   &ctx->glsl_minor);
 
-  flags = (COGL_FEATURE_TEXTURE_READ_PIXELS
-           | COGL_FEATURE_UNSIGNED_INT_INDICES);
+  flags = (COGL_FEATURE_TEXTURE_READ_PIXELS);
   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 67ec2917f..9930d2cd7 100644
--- a/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
+++ b/cogl/cogl/driver/gl/gles/cogl-driver-gles.c
@@ -313,7 +313,6 @@ _cogl_driver_update_features (CoglContext *context,
 
   if (_cogl_check_extension ("GL_OES_element_index_uint", gl_extensions))
     {
-      flags |= COGL_FEATURE_UNSIGNED_INT_INDICES;
       COGL_FLAGS_SET (context->features,
                       COGL_FEATURE_ID_UNSIGNED_INT_INDICES, TRUE);
     }


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