From bceedf081fe273dcf1e4fe61f1051190a515ff77 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 aeec3a12..9df20bb5 100644 --- a/src/renderer/sw_engine/tvgSwCommon.h +++ b/src/renderer/sw_engine/tvgSwCommon.h @@ -250,7 +250,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) {