anchor.diff:    glPopMatrix;
   end;
   
  +
  +initialization
  +begin
  +  {$IFDEF WDC}
  +  TKMRenderUI.ClipXStack := TStack<TKMRangeInt>.Create;
  +  TKMRenderUI.ClipYStack := TStack<TKMRangeInt>.Create;
  +  {$ENDIF}
  +end;
  +
  +
  +finalization
  +begin
  +  {$IFDEF WDC}
  +  TKMRenderUI.ClipXStack.Free;
  +  TKMRenderUI.ClipYStack.Free;
  +  {$ENDIF}
  +end;
  +
  +
   end.
  
positive.code: end;
  
  
  //Separate release of clipping planes
  class procedure TKMRenderUI.ReleaseClipX;
  begin
    glDisable(GL_CLIP_PLANE0);
    glDisable(GL_CLIP_PLANE1);
  end;
  
  
  //Separate release of clipping planes
  class procedure TKMRenderUI.ReleaseClipY;
  begin
    glDisable(GL_CLIP_PLANE2);
    glDisable(GL_CLIP_PLANE3);
  end;
  
  
  
negative.code: 
    SetLength(Colors, 0);
  
    SetupClipXApplied := aWidth <> 0;
    if SetupClipXApplied then
      SetupClipX(aLeft, aLeft + aWidth);
  
    //Look for [$FFFFFF][] patterns that markup text color
  