[client] add a MPV glsl style effect loader

This commit is contained in:
Geoffrey McRae
2026-07-18 08:41:38 +10:00
parent 215f7cb096
commit 78802319e3
22 changed files with 1494 additions and 45 deletions

View File

@@ -1218,13 +1218,15 @@ static bool egl_render(LG_Renderer * renderer, LG_RendererRotate rotate,
}
++this->overlayHistoryIdx;
bool fullFrame = false;
if (likely(this->destRect.w > 0 && this->destRect.h > 0))
{
if (egl_desktopRender(this->desktop,
this->destRect.w, this->destRect.h,
this->translateX, this->translateY,
this->scaleX , this->scaleY ,
this->scaleType , rotate, renderAll ? NULL : accumulated))
this->scaleType , rotate, renderAll ? NULL : accumulated,
&fullFrame))
{
cursorState = egl_cursorRender(this->cursor,
(this->format.rotate + rotate) % LG_ROTATE_MAX,
@@ -1234,6 +1236,11 @@ static bool egl_render(LG_Renderer * renderer, LG_RendererRotate rotate,
hasOverlay = true;
}
/* Preserve the full update in the damage history so buffer-age repair still
* redraws older swapchain buffers correctly. */
if (fullFrame)
desktopDamage->count = -1;
renderLetterBox(this);
hasOverlay |=