Revert "Revert "Linux: DRM modifier 0 is valid""

This reverts commit e5c2ad2069.
This commit is contained in:
loki-47-6F-64 2021-09-03 10:16:10 +02:00
parent e5c2ad2069
commit 512e581d56

View File

@ -475,7 +475,7 @@ std::optional<rgb_t> import_source(display_t::pointer egl_display, const surface
attribs[atti++] = plane_attr.pitch;
attribs[atti++] = xrgb.pitches[x];
if(xrgb.modifier && xrgb.modifier != DRM_FORMAT_MOD_INVALID) {
if(xrgb.modifier != DRM_FORMAT_MOD_INVALID) {
attribs[atti++] = plane_attr.lo;
attribs[atti++] = xrgb.modifier & 0xFFFFFFFF;
attribs[atti++] = plane_attr.hi;