1
0
Fork 0

cogl: Remove FrameBuffer CoglObject leftover

Fixes: eb14da387 ("cogl: Turn CoglFramebuffer, CoglOffscreen and
CoglOnscreen into GObjects")

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3806>
This commit is contained in:
Bilal Elmoussaoui 2024-06-12 13:23:06 +02:00
parent e951265806
commit e79f460eb8
2 changed files with 2 additions and 20 deletions

View file

@ -153,12 +153,6 @@ cogl_framebuffer_error_quark (void)
return g_quark_from_static_string ("cogl-framebuffer-error-quark");
}
gboolean
cogl_is_framebuffer (void *object)
{
return COGL_IS_FRAMEBUFFER (object);
}
static void
cogl_framebuffer_get_property (GObject *object,
guint prop_id,
@ -1462,7 +1456,7 @@ _cogl_framebuffer_read_pixels_into_bitmap (CoglFramebuffer *framebuffer,
int height;
g_return_val_if_fail (source & COGL_READ_PIXELS_COLOR_BUFFER, FALSE);
g_return_val_if_fail (cogl_is_framebuffer (framebuffer), FALSE);
g_return_val_if_fail (COGL_IS_FRAMEBUFFER (framebuffer), FALSE);
if (!cogl_framebuffer_allocate (framebuffer, error))
return FALSE;

View file

@ -968,7 +968,7 @@ cogl_framebuffer_draw_rectangle (CoglFramebuffer *framebuffer,
* The given texture coordinates will only be used for the first
* texture layer of the pipeline and if your pipeline has more than
* one layer then all other layers will have default texture
* coordinates of @s_1=0.0 @t_1=0.0 @s_2=1.0 @t_2=1.0
* coordinates of @s_1=0.0 @t_1=0.0 @s_2=1.0 @t_2=1.0
*
* The given texture coordinates should always be normalized such that
* (0, 0) corresponds to the top left and (1, 1) corresponds to the
@ -1281,18 +1281,6 @@ typedef enum /*< prefix=COGL_FRAMEBUFFER_ERROR >*/
COGL_FRAMEBUFFER_ERROR_ALLOCATE
} CoglFramebufferError;
/**
* cogl_is_framebuffer:
* @object: A #CoglObject pointer
*
* Gets whether the given object references a #CoglFramebuffer.
*
* Return value: %TRUE if the object references a #CoglFramebuffer
* and %FALSE otherwise.
*/
COGL_EXPORT gboolean
cogl_is_framebuffer (void *object);
/**
* cogl_blit_framebuffer:
* @framebuffer: The source #CoglFramebuffer