From 93e20cf21cbe54fed4de742dbd48d44badefa6cf Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 9 Oct 2018 19:43:35 -0300 Subject: [PATCH] cogl/framebuffer: Mark CoglOffscreen as a CoglFramebuffer implementation CoglOffscreen is effectively a CoglFramebuffer, but it isn't being marked as such by the GType machinery. This makes it impossible for introspection to correctly set this class up. Fix that by adding a COGL_GTYPE_IMPLEMENT_INTERFACE() code into the declaration of CoglOffscreen. This does not have any functional changes though. --- cogl/cogl/cogl-framebuffer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogl/cogl/cogl-framebuffer.c b/cogl/cogl/cogl-framebuffer.c index 73faae670..f2df9c229 100644 --- a/cogl/cogl/cogl-framebuffer.c +++ b/cogl/cogl/cogl-framebuffer.c @@ -66,7 +66,8 @@ static void _cogl_offscreen_free (CoglOffscreen *offscreen); COGL_OBJECT_DEFINE_WITH_CODE_GTYPE (Offscreen, offscreen, _cogl_offscreen_class.virt_unref = _cogl_framebuffer_unref); -COGL_GTYPE_DEFINE_CLASS (Offscreen, offscreen); +COGL_GTYPE_DEFINE_CLASS (Offscreen, offscreen, + COGL_GTYPE_IMPLEMENT_INTERFACE (framebuffer)); COGL_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (offscreen); COGL_GTYPE_DEFINE_INTERFACE (Framebuffer, framebuffer);