summaryrefslogtreecommitdiff
path: root/kms++/src
diff options
context:
space:
mode:
Diffstat (limited to 'kms++/src')
-rw-r--r--kms++/src/card.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/kms++/src/card.cpp b/kms++/src/card.cpp
index 3b3e2c1..4632f22 100644
--- a/kms++/src/card.cpp
+++ b/kms++/src/card.cpp
@@ -143,8 +143,7 @@ void Card::setup()
uint64_t has_dumb;
r = drmGetCap(m_fd, DRM_CAP_DUMB_BUFFER, &has_dumb);
- if (r || !has_dumb)
- throw invalid_argument("Dumb buffers not available");
+ m_has_dumb = r == 0 && has_dumb;
auto res = drmModeGetResources(m_fd);
if (res) {