Revert "Linux: DRM modifier 0 is valid"

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

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++] = plane_attr.pitch;
attribs[atti++] = xrgb.pitches[x]; attribs[atti++] = xrgb.pitches[x];
if(xrgb.modifier != DRM_FORMAT_MOD_INVALID) { if(xrgb.modifier && xrgb.modifier != DRM_FORMAT_MOD_INVALID) {
attribs[atti++] = plane_attr.lo; attribs[atti++] = plane_attr.lo;
attribs[atti++] = xrgb.modifier & 0xFFFFFFFF; attribs[atti++] = xrgb.modifier & 0xFFFFFFFF;
attribs[atti++] = plane_attr.hi; attribs[atti++] = plane_attr.hi;