mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-14 12:04:29 +00:00
sw_engine: blending stabilization++
Currently, only blending might work. Blending and composition must be handled together.
This commit is contained in:
parent
3f67c38c50
commit
6775f6e463
1 changed files with 4 additions and 1 deletions
|
@ -602,7 +602,10 @@ Compositor* SwRenderer::target(const RenderRegion& region, ColorSpace cs)
|
||||||
cmp->w = cmp->compositor->image.w;
|
cmp->w = cmp->compositor->image.w;
|
||||||
cmp->h = cmp->compositor->image.h;
|
cmp->h = cmp->compositor->image.h;
|
||||||
|
|
||||||
rasterClear(cmp, x, y, w, h, (surface->blendMethod == BlendMethod::Normal) ? 0x00000000 : 0x00ffffff);
|
/* TODO: Currently, only blending might work.
|
||||||
|
Blending and composition must be handled together. */
|
||||||
|
auto color = (surface->blender && !surface->compositor) ? 0x00ffffff : 0x00000000;
|
||||||
|
rasterClear(cmp, x, y, w, h, color);
|
||||||
|
|
||||||
//Switch render target
|
//Switch render target
|
||||||
surface = cmp;
|
surface = cmp;
|
||||||
|
|
Loading…
Add table
Reference in a new issue