tests/ref-test: Go directly from Crtc to Backend
This avoids going through the GPU which can be NULL in some cases. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3350>
This commit is contained in:
parent
1069085612
commit
e42c5dbd79
@ -213,8 +213,7 @@ assert_software_rendered (ClutterStageView *stage_view)
|
||||
{
|
||||
MetaRendererView *view = META_RENDERER_VIEW (stage_view);
|
||||
MetaCrtc *crtc = meta_renderer_view_get_crtc (view);
|
||||
MetaGpu *gpu = meta_crtc_get_gpu (crtc);
|
||||
MetaBackend *backend = meta_gpu_get_backend (gpu);
|
||||
MetaBackend *backend = meta_crtc_get_backend (crtc);
|
||||
|
||||
g_assert_false (meta_backend_is_rendering_hardware_accelerated (backend));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user