From 0ce4c34c37501e22821d0eaf34889bae8742bf98 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Sun, 19 Nov 2023 09:42:37 +1100 Subject: [PATCH] [client] egl: fix non-dma RGB24 import path --- client/renderers/EGL/filter_24bit.c | 2 +- client/renderers/EGL/texture_util.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/renderers/EGL/filter_24bit.c b/client/renderers/EGL/filter_24bit.c index b7a5e246..775be98c 100644 --- a/client/renderers/EGL/filter_24bit.c +++ b/client/renderers/EGL/filter_24bit.c @@ -148,7 +148,7 @@ static bool egl_filter24bitSetup(EGL_Filter * filter, this->desktopHeight == desktopHeight) return true; - if (!egl_framebufferSetup(this->fb, pixFmt, desktopWidth, desktopHeight)) + if (!egl_framebufferSetup(this->fb, EGL_PF_BGRA, desktopWidth, desktopHeight)) return false; this->format = pixFmt; diff --git a/client/renderers/EGL/texture_util.c b/client/renderers/EGL/texture_util.c index cd7f6074..0915340d 100644 --- a/client/renderers/EGL/texture_util.c +++ b/client/renderers/EGL/texture_util.c @@ -81,6 +81,7 @@ bool egl_texUtilGetFormat(const EGL_TexSetup * setup, EGL_TexFormat * fmt) fmt->intFormat = GL_BGRA_EXT; fmt->dataType = GL_UNSIGNED_BYTE; fmt->fourcc = DRM_FORMAT_ARGB8888; + fmt->stride = fmt->pitch / 4; break; default: