File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ static inline Tex2F v2ToTex2F(const Vec2 &v)
4747
4848DrawNode::DrawNode (float lineWidth)
4949: _lineWidth(lineWidth)
50+ , _defaultLineWidth(lineWidth)
5051{
5152 _blendFunc = BlendFunc::ALPHA_PREMULTIPLIED;
5253#if CC_ENABLE_CACHE_TEXTURE_DATA
@@ -732,7 +733,7 @@ void DrawNode::clear()
732733 _dirtyGLLine = true ;
733734 _bufferCountGLPoint = 0 ;
734735 _dirtyGLPoint = true ;
735- _lineWidth = 0 ;
736+ _lineWidth = _defaultLineWidth ;
736737}
737738
738739const BlendFunc& DrawNode::getBlendFunc () const
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ class CC_DLL DrawNode : public Node
349349 bool _dirtyGLLine = false ;
350350 bool _isolated = false ;
351351 float _lineWidth = 0 .0f ;
352-
352+ float _defaultLineWidth = 0 . 0f ;
353353private:
354354 CC_DISALLOW_COPY_AND_ASSIGN (DrawNode);
355355};
You can’t perform that action at this time.
0 commit comments