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:
Robert Bragg
2010-08-05 10:59:03 +01:00
parent b025a4a020
commit 11045c724c
5 changed files with 8 additions and 6 deletions

View File

@@ -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;
}