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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3910>
This commit is contained in:
parent
97c43f9eec
commit
6c1739ea1c
3 changed files with 5 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue