mirror of
https://github.com/brl/mutter.git
synced 2025-08-06 00:24:42 +00:00
cogl: Adds a COGL_FEATURE_SHADERS_ARBFP feature flag
This adds a public feature flag for ARBfp so developers can determine if the cogl API supports ARBfp or not.
This commit is contained in:
@@ -522,7 +522,7 @@ _cogl_features_available_private (CoglFeatureFlagsPrivate features)
|
||||
_cogl_features_init ();
|
||||
|
||||
if (G_UNLIKELY (cogl_debug_flags & COGL_DEBUG_DISABLE_ARBFP))
|
||||
ctx->feature_flags_private &= ~COGL_FEATURE_PRIVATE_ARB_FP;
|
||||
ctx->feature_flags_private &= ~COGL_FEATURE_SHADERS_ARBFP;
|
||||
|
||||
return (ctx->feature_flags_private & features) == features;
|
||||
}
|
||||
|
Reference in New Issue
Block a user