mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
cogl/gl-framebuffer: Match testing features
The function ensure_bits_initialized() in cogl-gl-framebuffer-fbo.c checks for COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS whereas the same in cogl-gl-framebuffer-back.c simply checks for the driver being COGL_DRIVER_GL3. Change the later to use the COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS flag as well. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3047>
This commit is contained in:
parent
a2203df9f4
commit
fad240f437
@ -66,7 +66,7 @@ ensure_bits_initialized (CoglGlFramebufferBack *gl_framebuffer_back)
|
||||
COGL_FRAMEBUFFER_STATE_BIND);
|
||||
|
||||
#ifdef HAVE_COGL_GL
|
||||
if (ctx->driver == COGL_DRIVER_GL3)
|
||||
if (_cogl_has_private_feature (ctx, COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS))
|
||||
{
|
||||
const struct {
|
||||
GLenum attachment, pname;
|
||||
|
Loading…
Reference in New Issue
Block a user