@ -365,7 +365,7 @@ void ImDrawList::Clear()
CmdBuffer . resize ( 0 ) ;
CmdBuffer . resize ( 0 ) ;
IdxBuffer . resize ( 0 ) ;
IdxBuffer . resize ( 0 ) ;
VtxBuffer . resize ( 0 ) ;
VtxBuffer . resize ( 0 ) ;
Flags = _Data - > InitialFlags ;
Flags = _Data ? _Data - > InitialFlags : ImDrawListFlags_None ;
_VtxCurrentOffset = 0 ;
_VtxCurrentOffset = 0 ;
_VtxCurrentIdx = 0 ;
_VtxCurrentIdx = 0 ;
_VtxWritePtr = NULL ;
_VtxWritePtr = NULL ;
@ -392,7 +392,7 @@ void ImDrawList::ClearFreeMemory()
ImDrawList * ImDrawList : : CloneOutput ( ) const
ImDrawList * ImDrawList : : CloneOutput ( ) const
{
{
ImDrawList * dst = IM_NEW ( ImDrawList ( NULL ) ) ;
ImDrawList * dst = IM_NEW ( ImDrawList ( _Data ) ) ;
dst - > CmdBuffer = CmdBuffer ;
dst - > CmdBuffer = CmdBuffer ;
dst - > IdxBuffer = IdxBuffer ;
dst - > IdxBuffer = IdxBuffer ;
dst - > VtxBuffer = VtxBuffer ;
dst - > VtxBuffer = VtxBuffer ;