Skip to content

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

Simon McVittie requested to merge wip/smcv/44-issue2848 into gnome-44

From: @ofourdan

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.

(cherry picked from commit a2203df9)

Resolves: #2848 (closed)

Merge request reports