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

This commit is contained in:
Geoffrey McRae committed 2023-11-10 06:28:05 +11:00
1 parent c0e09e13a5
commit 3a6afd04d2
1 file changed
+1 -1
+1 -1
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
// different bpp
desktop->format.dataWidth =
desktop->format.dataWidth / 4 * 3;
desktop->format.pitch / 4;
break;
default: