mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
cogl: Introduce private feature flags and check for ARB_fp
The Cogl context has now a feature_flags_private enum that will allow us to query and use OpenGL features without exposing them in the public API. The ARB_fragment_program extension is the first user of those flags. Looking for this extension only happens in the gl driver as the gles drivers will not expose them. One can use _cogl_features_available_private() to check for the availability of such private features. While at it, reindent cogl-internal.h as described in CODING_STYLE.
This commit is contained in:

committed by
Robert Bragg

parent
8836c868a4
commit
56dd71dba0
@ -27,7 +27,8 @@
|
||||
COGL_FEATURE_BEGIN (offscreen, 255, 255,
|
||||
"OES\0",
|
||||
"framebuffer_object\0",
|
||||
COGL_FEATURE_OFFSCREEN)
|
||||
COGL_FEATURE_OFFSCREEN,
|
||||
0)
|
||||
COGL_FEATURE_FUNCTION (void, glGenRenderbuffers,
|
||||
(GLsizei n,
|
||||
GLuint *renderbuffers))
|
||||
@ -71,5 +72,6 @@ COGL_FEATURE_END ()
|
||||
COGL_FEATURE_BEGIN (element_index_uint, 255, 255,
|
||||
"OES\0",
|
||||
"element_index_uint\0",
|
||||
COGL_FEATURE_UNSIGNED_INT_INDICES)
|
||||
COGL_FEATURE_UNSIGNED_INT_INDICES,
|
||||
0)
|
||||
COGL_FEATURE_END ()
|
||||
|
Reference in New Issue
Block a user