mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-18 23:49:50 +01:00
parent
278583b8a1
commit
db0b764a5a
1 changed files with 2 additions and 5 deletions
|
@ -193,11 +193,8 @@ void CWLSHMProtocol::bindManager(wl_client* client, void* data, uint32_t ver, ui
|
||||||
DRM_FORMAT_XBGR8888, DRM_FORMAT_ABGR8888, DRM_FORMAT_XRGB2101010, DRM_FORMAT_ARGB2101010, DRM_FORMAT_XBGR2101010, DRM_FORMAT_ABGR2101010,
|
DRM_FORMAT_XBGR8888, DRM_FORMAT_ABGR8888, DRM_FORMAT_XRGB2101010, DRM_FORMAT_ARGB2101010, DRM_FORMAT_XBGR2101010, DRM_FORMAT_ABGR2101010,
|
||||||
};
|
};
|
||||||
|
|
||||||
for (auto const& fmt : g_pHyprOpenGL->getDRMFormats()) {
|
for (auto const& fmt : supportedShmFourccFormats) {
|
||||||
if (std::find(supportedShmFourccFormats.begin(), supportedShmFourccFormats.end(), fmt.drmFormat) == supportedShmFourccFormats.end())
|
shmFormats.push_back(fmt);
|
||||||
continue;
|
|
||||||
|
|
||||||
shmFormats.push_back(fmt.drmFormat);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue