From 512e581d566d91b74611f3876e88e877d7bf6c47 Mon Sep 17 00:00:00 2001 From: loki-47-6F-64 Date: Fri, 3 Sep 2021 10:16:10 +0200 Subject: [PATCH] Revert "Revert "Linux: DRM modifier 0 is valid"" This reverts commit e5c2ad20699c4e754b34c897c10c4200f02498f9. --- sunshine/platform/linux/graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sunshine/platform/linux/graphics.cpp b/sunshine/platform/linux/graphics.cpp index 2905db0d..0dd53f0c 100644 --- a/sunshine/platform/linux/graphics.cpp +++ b/sunshine/platform/linux/graphics.cpp @@ -475,7 +475,7 @@ std::optional 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;