From 6c1739ea1cec53fbda9bd34293762a8f5e61983f Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sat, 27 Jul 2024 14:27:55 +0200 Subject: [PATCH] cogl: Move get_graphics_status to Context That is where it belongs & avoids a global function in the docs when it shouldn't be one Part-of: --- cogl/cogl/cogl-context.c | 2 +- cogl/cogl/cogl-context.h | 6 +++--- src/compositor/compositor.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cogl/cogl/cogl-context.c b/cogl/cogl/cogl-context.c index 4f5f34a91..eb74b6d32 100644 --- a/cogl/cogl/cogl-context.c +++ b/cogl/cogl/cogl-context.c @@ -443,7 +443,7 @@ cogl_context_get_latest_sync_fd (CoglContext *context) } CoglGraphicsResetStatus -cogl_get_graphics_reset_status (CoglContext *context) +cogl_context_get_graphics_reset_status (CoglContext *context) { return context->driver_vtable->get_graphics_reset_status (context); } diff --git a/cogl/cogl/cogl-context.h b/cogl/cogl/cogl-context.h index a2fbee4b9..21e913632 100644 --- a/cogl/cogl/cogl-context.h +++ b/cogl/cogl/cogl-context.h @@ -235,7 +235,7 @@ cogl_context_has_feature (CoglContext *context, * @COGL_GRAPHICS_RESET_STATUS_PURGED_CONTEXT_RESET: * * All the error values that might be returned by - * cogl_get_graphics_reset_status(). Each value's meaning corresponds + * cogl_context_get_graphics_reset_status(). Each value's meaning corresponds * to the similarly named value defined in the ARB_robustness and * NV_robustness_video_memory_purge extensions. */ @@ -249,7 +249,7 @@ typedef enum _CoglGraphicsResetStatus } CoglGraphicsResetStatus; /** - * cogl_get_graphics_reset_status: + * cogl_context_get_graphics_reset_status: * @context: a #CoglContext pointer * * Returns the graphics reset status as reported by @@ -262,7 +262,7 @@ typedef enum _CoglGraphicsResetStatus * Return value: a #CoglGraphicsResetStatus */ COGL_EXPORT CoglGraphicsResetStatus -cogl_get_graphics_reset_status (CoglContext *context); +cogl_context_get_graphics_reset_status (CoglContext *context); /** * cogl_context_is_hardware_accelerated: diff --git a/src/compositor/compositor.c b/src/compositor/compositor.c index c72276823..a9ef73691 100644 --- a/src/compositor/compositor.c +++ b/src/compositor/compositor.c @@ -1000,7 +1000,7 @@ meta_compositor_real_after_paint (MetaCompositor *compositor, ClutterStageView *stage_view; GList *l; - status = cogl_get_graphics_reset_status (priv->context); + status = cogl_context_get_graphics_reset_status (priv->context); switch (status) { case COGL_GRAPHICS_RESET_STATUS_NO_ERROR: