mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
cogl: GLES3 has sampler objects
https://gitlab.gnome.org/GNOME/mutter/merge_requests/882
This commit is contained in:
parent
b4226daadb
commit
03ef335a70
@ -314,6 +314,9 @@ _cogl_driver_update_features (CoglContext *context,
|
|||||||
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);
|
||||||
|
|
||||||
|
if (context->glGenSamplers)
|
||||||
|
COGL_FLAGS_SET (private_features, COGL_PRIVATE_FEATURE_SAMPLER_OBJECTS, TRUE);
|
||||||
|
|
||||||
if (context->glBlitFramebuffer)
|
if (context->glBlitFramebuffer)
|
||||||
COGL_FLAGS_SET (private_features,
|
COGL_FLAGS_SET (private_features,
|
||||||
COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER, TRUE);
|
COGL_PRIVATE_FEATURE_BLIT_FRAMEBUFFER, TRUE);
|
||||||
|
@ -162,7 +162,7 @@ COGL_EXT_FUNCTION (void, glFramebufferTexture2DMultisampleIMG,
|
|||||||
COGL_EXT_END ()
|
COGL_EXT_END ()
|
||||||
|
|
||||||
COGL_EXT_BEGIN (ARB_sampler_objects, 3, 3,
|
COGL_EXT_BEGIN (ARB_sampler_objects, 3, 3,
|
||||||
0, /* not in either GLES */
|
COGL_EXT_IN_GLES3,
|
||||||
"ARB:\0",
|
"ARB:\0",
|
||||||
"sampler_objects\0")
|
"sampler_objects\0")
|
||||||
COGL_EXT_FUNCTION (void, glGenSamplers,
|
COGL_EXT_FUNCTION (void, glGenSamplers,
|
||||||
|
Loading…
Reference in New Issue
Block a user