mirror of https://github.com/mpv-player/mpv
drm_atomic: Disallow selecting cursor planes using the options
This commit is contained in:
parent
02d40eee1b
commit
a9c2a8e162
|
@ -209,6 +209,9 @@ struct drm_atomic_context *drm_atomic_create_context(struct mp_log *log, int fd,
|
|||
mp_err(log, "Unable to retrieve type property from plane %d\n", j);
|
||||
goto fail;
|
||||
} else {
|
||||
if (value == DRM_PLANE_TYPE_CURSOR) // Skip cursor planes
|
||||
continue;
|
||||
|
||||
layercount++;
|
||||
|
||||
if ((!primary_id) && (value == DRM_PLANE_TYPE_PRIMARY))
|
||||
|
|
Loading…
Reference in New Issue