cogl: Remove unused COGL_FEATURE_DEPTH_TEXTURE

https://gitlab.gnome.org/GNOME/mutter/merge_requests/866
This commit is contained in:
Adam Jackson 2019-10-17 19:34:15 -04:00 committed by Georges Basile Stavracas Neto
parent cf107c89b8
commit 45e77c1d87
3 changed files with 0 additions and 5 deletions

View File

@ -125,8 +125,6 @@ typedef struct _CoglTextureVertex CoglTextureVertex;
* supported with CoglBufferAccess including read support. * supported with CoglBufferAccess including read support.
* @COGL_FEATURE_MAP_BUFFER_FOR_WRITE: Whether cogl_buffer_map() is * @COGL_FEATURE_MAP_BUFFER_FOR_WRITE: Whether cogl_buffer_map() is
* supported with CoglBufferAccess including write support. * supported with CoglBufferAccess including write support.
* @COGL_FEATURE_DEPTH_TEXTURE: Whether #CoglFramebuffer support rendering the
* depth buffer to a texture.
* *
* Flags for the supported features. * Flags for the supported features.
* *
@ -144,7 +142,6 @@ typedef enum
COGL_FEATURE_MAP_BUFFER_FOR_READ = (1 << 21), COGL_FEATURE_MAP_BUFFER_FOR_READ = (1 << 21),
COGL_FEATURE_MAP_BUFFER_FOR_WRITE = (1 << 22), COGL_FEATURE_MAP_BUFFER_FOR_WRITE = (1 << 22),
COGL_FEATURE_ONSCREEN_MULTIPLE = (1 << 23), COGL_FEATURE_ONSCREEN_MULTIPLE = (1 << 23),
COGL_FEATURE_DEPTH_TEXTURE = (1 << 24)
} CoglFeatureFlags; } CoglFeatureFlags;
/** /**

View File

@ -433,7 +433,6 @@ _cogl_driver_update_features (CoglContext *ctx,
if (COGL_CHECK_GL_VERSION (gl_major, gl_minor, 3, 0) || if (COGL_CHECK_GL_VERSION (gl_major, gl_minor, 3, 0) ||
_cogl_check_extension ("GL_ARB_depth_texture", gl_extensions)) _cogl_check_extension ("GL_ARB_depth_texture", gl_extensions))
{ {
flags |= COGL_FEATURE_DEPTH_TEXTURE;
COGL_FLAGS_SET (ctx->features, COGL_FEATURE_ID_DEPTH_TEXTURE, TRUE); COGL_FLAGS_SET (ctx->features, COGL_FEATURE_ID_DEPTH_TEXTURE, TRUE);
} }

View File

@ -320,7 +320,6 @@ _cogl_driver_update_features (CoglContext *context,
if (_cogl_check_extension ("GL_OES_depth_texture", gl_extensions)) if (_cogl_check_extension ("GL_OES_depth_texture", gl_extensions))
{ {
flags |= COGL_FEATURE_DEPTH_TEXTURE;
COGL_FLAGS_SET (context->features, COGL_FEATURE_ID_DEPTH_TEXTURE, TRUE); COGL_FLAGS_SET (context->features, COGL_FEATURE_ID_DEPTH_TEXTURE, TRUE);
} }