Skip to content

cogl/gl-framebuffer: Fix inverted test in ensure_bits_initialized()

Cogl's feature COGL_PRIVATE_FEATURE_QUERY_FRAMEBUFFER_BITS is required to use the GL_FRAMEBUFFER_ATTACHMENT_* queries.

Unfortunately, the test for the availability of the private feature is actually inverted in ensure_bits_initialized() which causes that whole portion of code to be ignored, falling back to the glGetIntegerv() method which isn't supported in core profiles.

As Mesa has recently started to be more strict about these, this causes the CI tests to fail in mutter.

Edited by Olivier Fourdan

Merge request reports