index f751147799ececcc50f6ee8bcdd587dab3143324..c4bf7f86a7e9d188ff5435067150149641635724 100644 (file)
@@ -138,7 +138,7 @@ Plane* ResourceManager::reserve_plane(Crtc* crtc, PlaneType type, PixelFormat fo
return nullptr;
for (Plane* plane : crtc->get_possible_planes()) {
- if (plane->plane_type() == type)
+ if (plane->plane_type() != type)
continue;
if (format != PixelFormat::Undefined && !plane->supports_format(format))