mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[client] egl: use the pitch to calculate the new width for rgb24
This commit is contained in:
parent
c0e09e13a5
commit
3a6afd04d2
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user