From fad240f437d6b11f664c9c09aecabe5f5e703eca Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Mon, 5 Jun 2023 10:31:38 +0200 Subject: [PATCH] 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: --- cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c b/cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c index 8d76f1578..f6a17e8f0 100644 --- a/cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c +++ b/cogl/cogl/driver/gl/cogl-gl-framebuffer-back.c @@ -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;