mirror of
https://github.com/brl/mutter.git
synced 2024-11-09 15:37:00 -05:00
cogl: Remove always-set COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE
https://gitlab.gnome.org/GNOME/mutter/merge_requests/866
This commit is contained in:
parent
7716a418ce
commit
da36575d7f
@ -187,8 +187,6 @@ cogl_is_context (void *object);
|
||||
* cogl_indices_new().
|
||||
* @COGL_FEATURE_ID_POINT_SPRITE: Whether
|
||||
* cogl_pipeline_set_layer_point_sprite_coords_enabled() is supported.
|
||||
* @COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE: Whether cogl_point_size_in
|
||||
* can be used as an attribute to set a per-vertex point size.
|
||||
* @COGL_FEATURE_ID_MAP_BUFFER_FOR_READ: Whether cogl_buffer_map() is
|
||||
* supported with CoglBufferAccess including read support.
|
||||
* @COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE: Whether cogl_buffer_map() is
|
||||
@ -223,7 +221,6 @@ typedef enum _CoglFeatureID
|
||||
COGL_FEATURE_ID_DEPTH_TEXTURE,
|
||||
COGL_FEATURE_ID_PRESENTATION_TIME,
|
||||
COGL_FEATURE_ID_FENCE,
|
||||
COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE,
|
||||
COGL_FEATURE_ID_TEXTURE_RG,
|
||||
COGL_FEATURE_ID_BUFFER_AGE,
|
||||
COGL_FEATURE_ID_TEXTURE_EGL_IMAGE_EXTERNAL,
|
||||
|
@ -1347,16 +1347,6 @@ cogl_pipeline_set_per_vertex_point_size (CoglPipeline *pipeline,
|
||||
if (authority->big_state->per_vertex_point_size == enable)
|
||||
return TRUE;
|
||||
|
||||
if (enable && !cogl_has_feature (ctx, COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE))
|
||||
{
|
||||
g_set_error_literal (error,
|
||||
COGL_SYSTEM_ERROR,
|
||||
COGL_SYSTEM_ERROR_UNSUPPORTED,
|
||||
"Per-vertex point size is not supported");
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* - Flush journal primitives referencing the current state.
|
||||
* - Make sure the pipeline has no dependants so it may be modified.
|
||||
* - If the pipeline isn't currently an authority for the state being
|
||||
|
@ -544,11 +544,6 @@ cogl_pipeline_get_point_size (CoglPipeline *pipeline);
|
||||
* and cogl_point_size_out is not written to then the results are
|
||||
* undefined.
|
||||
*
|
||||
* Note that enabling this will only work if the
|
||||
* %COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE feature is available. If
|
||||
* this is not available then the function will return %FALSE and set
|
||||
* a #GError.
|
||||
*
|
||||
* Since: 2.0
|
||||
* Stability: Unstable
|
||||
* Return value: %TRUE if the change suceeded or %FALSE otherwise
|
||||
|
@ -463,7 +463,6 @@ _cogl_driver_update_features (CoglContext *ctx,
|
||||
COGL_FLAGS_SET (private_features,
|
||||
COGL_PRIVATE_FEATURE_TEXTURE_SWIZZLE, TRUE);
|
||||
|
||||
COGL_FLAGS_SET (ctx->features, COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE, TRUE);
|
||||
COGL_FLAGS_SET (private_features,
|
||||
COGL_PRIVATE_FEATURE_ENABLE_PROGRAM_POINT_SIZE, TRUE);
|
||||
|
||||
|
@ -306,8 +306,6 @@ _cogl_driver_update_features (CoglContext *context,
|
||||
* 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 (context->features,
|
||||
COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE, TRUE);
|
||||
|
||||
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ANY_GL, TRUE);
|
||||
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ALPHA_TEXTURES, TRUE);
|
||||
|
@ -36,12 +36,6 @@ check_flags (TestFlags flags,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (flags & TEST_REQUIREMENT_PER_VERTEX_POINT_SIZE &&
|
||||
!cogl_has_feature (test_ctx, COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE))
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (flags & TEST_REQUIREMENT_MAP_WRITE &&
|
||||
!cogl_has_feature (test_ctx, COGL_FEATURE_ID_MAP_BUFFER_FOR_WRITE))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user