mirror of
https://github.com/LizardByte/Sunshine.git
synced 2024-11-19 05:11:53 +00:00
Revert "Linux: DRM modifier 0 is valid"
This reverts commit e33a7ff53b
.
This commit is contained in:
parent
6af961199e
commit
e5c2ad2069
@ -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 != DRM_FORMAT_MOD_INVALID) {
|
||||
if(xrgb.modifier && xrgb.modifier != DRM_FORMAT_MOD_INVALID) {
|
||||
attribs[atti++] = plane_attr.lo;
|
||||
attribs[atti++] = xrgb.modifier & 0xFFFFFFFF;
|
||||
attribs[atti++] = plane_attr.hi;
|
||||
|
Loading…
Reference in New Issue
Block a user