diff --git a/src/backend/drm/DRM.cpp b/src/backend/drm/DRM.cpp index 66b7bb4..20e9165 100644 --- a/src/backend/drm/DRM.cpp +++ b/src/backend/drm/DRM.cpp @@ -1718,6 +1718,10 @@ size_t Aquamarine::CDRMOutput::getGammaSize() { } std::vector Aquamarine::CDRMOutput::getRenderFormats() { + if (!connector->crtc || !connector->crtc->primary || connector->crtc->primary->formats.empty()) { + backend->log(AQ_LOG_ERROR, "Can't get formats: no crtc"); + return {}; + } return connector->crtc->primary->formats; }