From b2622193b2f0caf1f69e807323659752829cf705 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Fri, 18 Oct 2024 01:05:22 +0900 Subject: [PATCH] gl_engine: initialize members properly. corrected a regression of uninitialized data value access. --- src/renderer/gl_engine/tvgGlTessellator.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/renderer/gl_engine/tvgGlTessellator.h b/src/renderer/gl_engine/tvgGlTessellator.h index 8cf03635..50f1411a 100644 --- a/src/renderer/gl_engine/tvgGlTessellator.h +++ b/src/renderer/gl_engine/tvgGlTessellator.h @@ -115,8 +115,8 @@ private: StrokeCap mStrokeCap = StrokeCap::Square; StrokeJoin mStrokeJoin = StrokeJoin::Bevel; State mStrokeState = {}; - Point mLeftTop; - Point mRightBottom; + Point mLeftTop = {0.0f, 0.0f}; + Point mRightBottom = {0.0f, 0.0f}; }; class DashStroke @@ -176,8 +176,8 @@ private: Array* mResPoints; Array* mResIndices; - Point mLeftTop; - Point mRightBottom; + Point mLeftTop = {0.0f, 0.0f}; + Point mRightBottom = {0.0f, 0.0f}; }; } // namespace tvg