mirror of
https://github.com/brl/mutter.git
synced 2025-01-12 20:52:37 +00:00
cursor-renderer/native: Fix type in unset_crtc_cursor_renderer_privates
Since the commit below, meta_crtc_kms_get_cursor_renderer_private has
returned a CrtcCursorData pointer, but this code was still treating it
as a MetaDrmBuffer pointer.
Fixes: fea8ebcca9
("cursor-renderer/native: Store struct in CRTC private")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2524>
This commit is contained in:
parent
709d06e89e
commit
10c7ab2dec
@ -1104,11 +1104,11 @@ unset_crtc_cursor_renderer_privates (MetaGpu *gpu,
|
||||
for (l = meta_gpu_get_crtcs (gpu); l; l = l->next)
|
||||
{
|
||||
MetaCrtcKms *crtc_kms = META_CRTC_KMS (l->data);
|
||||
MetaDrmBuffer *crtc_buffer;
|
||||
CrtcCursorData *crtc_cursor_data;
|
||||
|
||||
crtc_buffer = meta_crtc_kms_get_cursor_renderer_private (crtc_kms);
|
||||
if (buffer == crtc_buffer)
|
||||
meta_crtc_kms_set_cursor_renderer_private (crtc_kms, NULL, NULL);
|
||||
crtc_cursor_data = meta_crtc_kms_get_cursor_renderer_private (crtc_kms);
|
||||
if (crtc_cursor_data && buffer == crtc_cursor_data->buffer)
|
||||
crtc_cursor_data->buffer = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user