From 3a6afd04d224f81ff5b1559428466fac6a6082fd Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Wed, 8 Nov 2023 21:30:50 +1100 Subject: [PATCH] [client] egl: use the pitch to calculate the new width for rgb24 --- client/renderers/EGL/desktop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/renderers/EGL/desktop.c b/client/renderers/EGL/desktop.c index a8cca3f2..f60075c0 100644 --- a/client/renderers/EGL/desktop.c +++ b/client/renderers/EGL/desktop.c @@ -350,7 +350,7 @@ bool egl_desktopSetup(EGL_Desktop * desktop, const LG_RendererFormat format) // 32-bit texture to load the data, so we need to alter the width for the // different bpp desktop->format.dataWidth = - desktop->format.dataWidth / 4 * 3; + desktop->format.pitch / 4; break; default: