sw_engine: fixed an uninitialized data access

This commit is contained in:
Hermet Park 2024-10-03 18:09:08 +09:00 committed by Hermet Park
parent 42c4190112
commit bceedf081f

View file

@ -250,7 +250,7 @@ struct SwSurface : RenderSurface
SwAlpha alphas[4]; //Alpha:2, InvAlpha:3, Luma:4, InvLuma:5 SwAlpha alphas[4]; //Alpha:2, InvAlpha:3, Luma:4, InvLuma:5
SwBlender blender = nullptr; //blender (optional) SwBlender blender = nullptr; //blender (optional)
SwCompositor* compositor = nullptr; //compositor (optional) SwCompositor* compositor = nullptr; //compositor (optional)
BlendMethod blendMethod; //blending method (uint8_t) BlendMethod blendMethod = BlendMethod::Normal;
SwAlpha alpha(CompositeMethod method) SwAlpha alpha(CompositeMethod method)
{ {