# Pastebin dBsqEN07 diff --git a/video/out/drm_atomic.c b/video/out/drm_atomic.c index 5c6b3bbe21..5a86c4a24d 100644 --- a/video/out/drm_atomic.c +++ b/video/out/drm_atomic.c @@ -222,10 +222,10 @@ struct drm_atomic_context *drm_atomic_create_context(struct mp_log *log, int fd, if (value != DRM_PLANE_TYPE_CURSOR) { // Skip cursor planes layercount++; - if ((!primary_id) && (value == DRM_PLANE_TYPE_PRIMARY)) + if ((!primary_id) && (value == DRM_PLANE_TYPE_OVERLAY)) primary_id = plane_id; - if ((!overlay_id) && (value == DRM_PLANE_TYPE_OVERLAY)) + if ((!overlay_id) && (value == DRM_PLANE_TYPE_PRIMARY)) overlay_id = plane_id; if (layercount == osd_plane_id) {