summaryrefslogtreecommitdiff
path: root/libkms++
diff options
context:
space:
mode:
Diffstat (limited to 'libkms++')
-rw-r--r--libkms++/plane.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/libkms++/plane.cpp b/libkms++/plane.cpp
index afb9c78..b9884e2 100644
--- a/libkms++/plane.cpp
+++ b/libkms++/plane.cpp
@@ -59,6 +59,9 @@ bool Plane::supports_crtc(Crtc* crtc) const
PlaneType Plane::plane_type() const
{
- return (PlaneType)get_prop_value("type");
+ if (card().has_has_universal_planes())
+ return (PlaneType)get_prop_value("type");
+ else
+ return PlaneType::Overlay;
}
}