Linux: DRM modifier 0 is valid

DRM_FORMAT_MOD_LINEAR = 0
This commit is contained in:
David Rosca 2021-09-02 12:34:27 +02:00
parent d9d50d8943
commit e33a7ff53b
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

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;