From 1d2e042240bfd56556c584174298360c6c4649e4 Mon Sep 17 00:00:00 2001 From: loki Date: Sun, 15 Aug 2021 22:19:08 +0200 Subject: [PATCH] Use standard function for create egl images --- sunshine/platform/linux/graphics.cpp | 6 +++--- sunshine/platform/linux/graphics.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/sunshine/platform/linux/graphics.cpp b/sunshine/platform/linux/graphics.cpp index 2799e4af..d006d33b 100644 --- a/sunshine/platform/linux/graphics.cpp +++ b/sunshine/platform/linux/graphics.cpp @@ -410,7 +410,7 @@ std::optional import_source(display_t::pointer egl_display, const surface } std::optional import_target(display_t::pointer egl_display, std::array &&fds, const surface_descriptor_t &r8, const surface_descriptor_t &gr88) { - int img_attr_planes[2][13] { + EGLAttrib img_attr_planes[2][13] { { EGL_LINUX_DRM_FOURCC_EXT, DRM_FORMAT_R8, EGL_WIDTH, r8.width, EGL_HEIGHT, r8.height, @@ -430,8 +430,8 @@ std::optional import_target(display_t::pointer egl_display, std::array