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.
This commit is contained in:
Georges Basile Stavracas Neto 2018-10-09 19:43:35 -03:00
parent a8e9f46ed8
commit 93e20cf21c

View File

@ -66,7 +66,8 @@ static void _cogl_offscreen_free (CoglOffscreen *offscreen);
COGL_OBJECT_DEFINE_WITH_CODE_GTYPE (Offscreen, offscreen, COGL_OBJECT_DEFINE_WITH_CODE_GTYPE (Offscreen, offscreen,
_cogl_offscreen_class.virt_unref = _cogl_offscreen_class.virt_unref =
_cogl_framebuffer_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_OBJECT_DEFINE_DEPRECATED_REF_COUNTING (offscreen);
COGL_GTYPE_DEFINE_INTERFACE (Framebuffer, framebuffer); COGL_GTYPE_DEFINE_INTERFACE (Framebuffer, framebuffer);