gl_engine: initialize members properly.

corrected a regression of uninitialized data value access.
This commit is contained in:
Hermet Park 2024-10-18 01:05:22 +09:00
parent 1e9609c6f7
commit b2622193b2

View file

@ -115,8 +115,8 @@ private:
StrokeCap mStrokeCap = StrokeCap::Square; StrokeCap mStrokeCap = StrokeCap::Square;
StrokeJoin mStrokeJoin = StrokeJoin::Bevel; StrokeJoin mStrokeJoin = StrokeJoin::Bevel;
State mStrokeState = {}; State mStrokeState = {};
Point mLeftTop; Point mLeftTop = {0.0f, 0.0f};
Point mRightBottom; Point mRightBottom = {0.0f, 0.0f};
}; };
class DashStroke class DashStroke
@ -176,8 +176,8 @@ private:
Array<float>* mResPoints; Array<float>* mResPoints;
Array<uint32_t>* mResIndices; Array<uint32_t>* mResIndices;
Point mLeftTop; Point mLeftTop = {0.0f, 0.0f};
Point mRightBottom; Point mRightBottom = {0.0f, 0.0f};
}; };
} // namespace tvg } // namespace tvg