From d3af7a5cb01a44d2b79d03319b4efec9c27ba140 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 3 Oct 2024 18:09:08 +0900 Subject: [PATCH] sw_engine: fixed an uninitialized data access --- src/renderer/sw_engine/tvgSwCommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/sw_engine/tvgSwCommon.h b/src/renderer/sw_engine/tvgSwCommon.h index 926300ef..ba1ffa50 100644 --- a/src/renderer/sw_engine/tvgSwCommon.h +++ b/src/renderer/sw_engine/tvgSwCommon.h @@ -246,7 +246,7 @@ struct SwSurface : RenderSurface SwAlpha alphas[4]; //Alpha:2, InvAlpha:3, Luma:4, InvLuma:5 SwBlender blender = nullptr; //blender (optional) SwCompositor* compositor = nullptr; //compositor (optional) - BlendMethod blendMethod; //blending method (uint8_t) + BlendMethod blendMethod = BlendMethod::Normal; SwAlpha alpha(CompositeMethod method) {