mirror of https://github.com/hyprwm/Hyprland
dmabufff
This commit is contained in:
parent
be4051e923
commit
45f726c6bd
|
@ -398,7 +398,18 @@ CLinuxDMABufV1Protocol::CLinuxDMABufV1Protocol(const wl_interface* iface, const
|
|||
if (impl->type() != Aquamarine::AQ_BACKEND_DRM)
|
||||
continue;
|
||||
aqFormats = impl->getRenderFormats();
|
||||
break;
|
||||
if (!aqFormats.empty())
|
||||
break;
|
||||
}
|
||||
|
||||
if (aqFormats.empty()) {
|
||||
// fallback: use EGL formats
|
||||
for (auto& fmt : g_pHyprOpenGL->getDRMFormats()) {
|
||||
aqFormats.emplace_back(Aquamarine::SDRMFormat{
|
||||
.drmFormat = fmt.drmFormat,
|
||||
.modifiers = fmt.modifiers,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
SDMABufTranche tranche = {
|
||||
|
|
Loading…
Reference in New Issue