mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
cogl: Remove always-set COGL_PRIVATE_FEATURE_BLEND_CONSTANT
https://gitlab.gnome.org/GNOME/mutter/merge_requests/866
This commit is contained in:
parent
6ab2e30fff
commit
7716a418ce
@ -245,17 +245,6 @@ validate_blend_statements (CoglBlendStringStatement *statements,
|
|||||||
"for arg0 and DST_COLOR for arg1";
|
"for arg0 and DST_COLOR for arg1";
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_cogl_has_private_feature (ctx,
|
|
||||||
COGL_PRIVATE_FEATURE_BLEND_CONSTANT) &&
|
|
||||||
arg->factor.is_color &&
|
|
||||||
(arg->factor.source.info->type ==
|
|
||||||
COGL_BLEND_STRING_COLOR_SOURCE_CONSTANT))
|
|
||||||
{
|
|
||||||
error_string = "Driver doesn't support constant blend factors";
|
|
||||||
detail = COGL_BLEND_STRING_ERROR_GPU_UNSUPPORTED_ERROR;
|
|
||||||
goto error;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -1014,9 +1014,6 @@ cogl_pipeline_set_blend_constant (CoglPipeline *pipeline,
|
|||||||
|
|
||||||
g_return_if_fail (cogl_is_pipeline (pipeline));
|
g_return_if_fail (cogl_is_pipeline (pipeline));
|
||||||
|
|
||||||
if (!_cogl_has_private_feature (ctx, COGL_PRIVATE_FEATURE_BLEND_CONSTANT))
|
|
||||||
return;
|
|
||||||
|
|
||||||
#if defined(HAVE_COGL_GLES2) || defined(HAVE_COGL_GL)
|
#if defined(HAVE_COGL_GLES2) || defined(HAVE_COGL_GL)
|
||||||
{
|
{
|
||||||
CoglPipelineState state = COGL_PIPELINE_STATE_BLEND;
|
CoglPipelineState state = COGL_PIPELINE_STATE_BLEND;
|
||||||
|
@ -52,7 +52,6 @@ typedef enum
|
|||||||
COGL_PRIVATE_FEATURE_READ_PIXELS_ANY_FORMAT,
|
COGL_PRIVATE_FEATURE_READ_PIXELS_ANY_FORMAT,
|
||||||
COGL_PRIVATE_FEATURE_ALPHA_TEST,
|
COGL_PRIVATE_FEATURE_ALPHA_TEST,
|
||||||
COGL_PRIVATE_FEATURE_FORMAT_CONVERSION,
|
COGL_PRIVATE_FEATURE_FORMAT_CONVERSION,
|
||||||
COGL_PRIVATE_FEATURE_BLEND_CONSTANT,
|
|
||||||
COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS,
|
COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS,
|
||||||
COGL_PRIVATE_FEATURE_BUILTIN_POINT_SIZE_UNIFORM,
|
COGL_PRIVATE_FEATURE_BUILTIN_POINT_SIZE_UNIFORM,
|
||||||
COGL_PRIVATE_FEATURE_QUERY_TEXTURE_PARAMETERS,
|
COGL_PRIVATE_FEATURE_QUERY_TEXTURE_PARAMETERS,
|
||||||
|
@ -436,8 +436,6 @@ _cogl_driver_update_features (CoglContext *ctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_PBOS, TRUE);
|
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_PBOS, TRUE);
|
||||||
COGL_FLAGS_SET (private_features,
|
|
||||||
COGL_PRIVATE_FEATURE_BLEND_CONSTANT, TRUE);
|
|
||||||
|
|
||||||
flags |= COGL_FEATURE_POINT_SPRITE;
|
flags |= COGL_FEATURE_POINT_SPRITE;
|
||||||
COGL_FLAGS_SET (ctx->features, COGL_FEATURE_ID_POINT_SPRITE, TRUE);
|
COGL_FLAGS_SET (ctx->features, COGL_FEATURE_ID_POINT_SPRITE, TRUE);
|
||||||
@ -483,7 +481,6 @@ _cogl_driver_update_features (CoglContext *ctx,
|
|||||||
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ANY_GL, TRUE);
|
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ANY_GL, TRUE);
|
||||||
COGL_FLAGS_SET (private_features,
|
COGL_FLAGS_SET (private_features,
|
||||||
COGL_PRIVATE_FEATURE_FORMAT_CONVERSION, TRUE);
|
COGL_PRIVATE_FEATURE_FORMAT_CONVERSION, TRUE);
|
||||||
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_BLEND_CONSTANT, TRUE);
|
|
||||||
COGL_FLAGS_SET (private_features,
|
COGL_FLAGS_SET (private_features,
|
||||||
COGL_PRIVATE_FEATURE_BUILTIN_POINT_SIZE_UNIFORM, TRUE);
|
COGL_PRIVATE_FEATURE_BUILTIN_POINT_SIZE_UNIFORM, TRUE);
|
||||||
COGL_FLAGS_SET (private_features,
|
COGL_FLAGS_SET (private_features,
|
||||||
|
@ -309,9 +309,6 @@ _cogl_driver_update_features (CoglContext *context,
|
|||||||
COGL_FLAGS_SET (context->features,
|
COGL_FLAGS_SET (context->features,
|
||||||
COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE, TRUE);
|
COGL_FEATURE_ID_PER_VERTEX_POINT_SIZE, TRUE);
|
||||||
|
|
||||||
COGL_FLAGS_SET (private_features,
|
|
||||||
COGL_PRIVATE_FEATURE_BLEND_CONSTANT, TRUE);
|
|
||||||
|
|
||||||
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ANY_GL, TRUE);
|
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ANY_GL, TRUE);
|
||||||
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ALPHA_TEXTURES, TRUE);
|
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_ALPHA_TEXTURES, TRUE);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user