[client] egl: use the pitch to calculate the new width for rgb24

This commit is contained in:
Geoffrey McRae 2023-11-08 21:30:50 +11:00
parent c0e09e13a5
commit 3a6afd04d2

View File

@ -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 // 32-bit texture to load the data, so we need to alter the width for the
// different bpp // different bpp
desktop->format.dataWidth = desktop->format.dataWidth =
desktop->format.dataWidth / 4 * 3; desktop->format.pitch / 4;
break; break;
default: default: