[client] egl: fix non-DMA font atlas corruption

Unbind the streamed desktop pixel upload buffer before ImGui processes
CPU-backed font atlas updates.

This prevents atlas pointers from being interpreted as PBO offsets when
DMA is disabled, which caused newly requested glyphs to be missing.
This commit is contained in:
Geoffrey McRae
2026-08-03 23:38:22 +10:00
parent cb5b9ab292
commit adf3101a1a

View File

@@ -1533,6 +1533,9 @@ static bool egl_render(LG_Renderer * renderer, LG_RendererRotate rotate,
ImGui_ImplOpenGL3_NewFrame();
if (drawOverlay)
{
/* ImGui uploads atlas updates from CPU memory. The streamed desktop
* path may have left its pixel unpack buffer bound. */
egl_stateBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
ImGui_ImplOpenGL3_RenderDrawData(igGetDrawData());
egl_stateInvalidate();
}