mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
cogl/backend: Remove ensure_context()
We have a default implementation for it, now.
This commit is contained in:
parent
790c0d1f91
commit
0c02e8adb3
@ -169,22 +169,6 @@ clutter_backend_cogl_get_features (ClutterBackend *backend)
|
||||
return flags;
|
||||
}
|
||||
|
||||
static void
|
||||
clutter_backend_cogl_ensure_context (ClutterBackend *backend,
|
||||
ClutterStage *stage)
|
||||
{
|
||||
ClutterStageCogl *stage_cogl;
|
||||
|
||||
/* ignore ensuring the context on an empty stage */
|
||||
if (stage == NULL)
|
||||
return;
|
||||
|
||||
stage_cogl =
|
||||
CLUTTER_STAGE_COGL (_clutter_stage_get_window (stage));
|
||||
|
||||
cogl_set_framebuffer (COGL_FRAMEBUFFER (stage_cogl->onscreen));
|
||||
}
|
||||
|
||||
static void
|
||||
_clutter_backend_cogl_class_init (ClutterBackendCoglClass *klass)
|
||||
{
|
||||
@ -198,7 +182,6 @@ _clutter_backend_cogl_class_init (ClutterBackendCoglClass *klass)
|
||||
backend_class->pre_parse = clutter_backend_cogl_pre_parse;
|
||||
backend_class->post_parse = clutter_backend_cogl_post_parse;
|
||||
backend_class->get_features = clutter_backend_cogl_get_features;
|
||||
backend_class->ensure_context = clutter_backend_cogl_ensure_context;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
x
Reference in New Issue
Block a user