From e5c2ad20699c4e754b34c897c10c4200f02498f9 Mon Sep 17 00:00:00 2001 From: loki-47-6F-64 Date: Fri, 3 Sep 2021 10:12:16 +0200 Subject: [PATCH] Revert "Linux: DRM modifier 0 is valid" This reverts commit e33a7ff53b74c510abddbd36cb56516131a7828c. --- 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 0dd53f0c..2905db0d 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 != 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;