renderer: drop the mods.empty() check

what if the driver did return modifiers that isnt linear, this wont be
added because of the .empty check.
This commit is contained in:
Tom Englund 2025-10-25 18:12:50 +02:00 committed by Vaxry
parent 79b515fc44
commit 62479232aa

View file

@ -307,7 +307,7 @@ std::optional<std::vector<std::pair<uint64_t, bool>>> CDRMRenderer::getModsForFo
}
// if the driver doesn't mark linear as external, add it. It's allowed unless the driver says otherwise. (e.g. nvidia)
if (!linearIsExternal && std::ranges::find(mods, DRM_FORMAT_MOD_LINEAR) == mods.end() && mods.empty())
if (!linearIsExternal && std::ranges::find(mods, DRM_FORMAT_MOD_LINEAR) == mods.end())
result.emplace_back(DRM_FORMAT_MOD_LINEAR, true);
return result;