mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
cogl: Require {EXT,ARB}_framebuffer_object in the GL driver
This was only promoted to core in 3.0, but Mesa's supported it unconditionally since around 7.0 even in 2.1 contexts, so this is not a particularly onerous requirement. https://gitlab.gnome.org/GNOME/mutter/merge_requests/866
This commit is contained in:
parent
5f4e8789df
commit
4523251849
@ -407,14 +407,19 @@ _cogl_driver_update_features (CoglContext *ctx,
|
||||
COGL_FLAGS_SET (private_features,
|
||||
COGL_PRIVATE_FEATURE_MESA_PACK_INVERT, TRUE);
|
||||
|
||||
if (ctx->glGenRenderbuffers)
|
||||
if (!ctx->glGenRenderbuffers)
|
||||
{
|
||||
flags |= COGL_FEATURE_OFFSCREEN;
|
||||
COGL_FLAGS_SET (ctx->features, COGL_FEATURE_ID_OFFSCREEN, TRUE);
|
||||
COGL_FLAGS_SET (private_features,
|
||||
COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS,
|
||||
TRUE);
|
||||
g_set_error (error,
|
||||
COGL_DRIVER_ERROR,
|
||||
COGL_DRIVER_ERROR_NO_SUITABLE_DRIVER_FOUND,
|
||||
"Framebuffer objects are required to use the GL driver");
|
||||
return FALSE;
|
||||
}
|
||||
flags |= COGL_FEATURE_OFFSCREEN;
|
||||
COGL_FLAGS_SET (ctx->features, COGL_FEATURE_ID_OFFSCREEN, TRUE);
|
||||
COGL_FLAGS_SET (private_features,
|
||||
COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS,
|
||||
TRUE);
|
||||
|
||||
if (ctx->glBlitFramebuffer)
|
||||
COGL_FLAGS_SET (private_features,
|
||||
|
Loading…
Reference in New Issue
Block a user