mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-04 06:12:04 +00:00
[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:
@@ -1533,6 +1533,9 @@ static bool egl_render(LG_Renderer * renderer, LG_RendererRotate rotate,
|
|||||||
ImGui_ImplOpenGL3_NewFrame();
|
ImGui_ImplOpenGL3_NewFrame();
|
||||||
if (drawOverlay)
|
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());
|
ImGui_ImplOpenGL3_RenderDrawData(igGetDrawData());
|
||||||
egl_stateInvalidate();
|
egl_stateInvalidate();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user