engines: ++TODO

some blends are not supported yet
This commit is contained in:
Hermet Park 2025-07-25 14:33:17 +09:00
parent bdccfb2449
commit da05042b53
2 changed files with 6 additions and 0 deletions

View file

@ -980,6 +980,9 @@ const RenderSurface* GlRenderer::mainSurface()
bool GlRenderer::blend(BlendMethod method) bool GlRenderer::blend(BlendMethod method)
{ {
//TODO: support
if (method == BlendMethod::Hue || method == BlendMethod::Saturation || method == BlendMethod::Color || method == BlendMethod::Luminosity || method == BlendMethod::HardMix) return false;
if (method == mBlendMethod) return true; if (method == mBlendMethod) return true;
mBlendMethod = method; mBlendMethod = method;

View file

@ -283,6 +283,9 @@ RenderRegion WgRenderer::region(RenderData data)
bool WgRenderer::blend(BlendMethod method) bool WgRenderer::blend(BlendMethod method)
{ {
//TODO: support
if (method == BlendMethod::Hue || method == BlendMethod::Saturation || method == BlendMethod::Color || method == BlendMethod::Luminosity || method == BlendMethod::HardMix) return false;
mBlendMethod = method; mBlendMethod = method;
return true; return true;
} }