anchor.diff:    end;
   
     Result := true;
  +  {$ENDIF}
  +  //glXChooseVisual() should be on Uni insted of ChoosePixelFormatx
   end;
   
   
  
positive.code: 
    if not SetDCPixelFormat(h_DC, PixelFormat) then
      exit;
  
    h_RC := wglCreateContext(h_DC);
  
    if h_RC = 0 then
    begin
      MessageBox(HWND(nil), 'Unable to create an OpenGL rendering context', 'Error', MB_OK or MB_ICONERROR);
      exit;
    end;
  
    if not wglMakeCurrent(h_DC, h_RC) then
    begin
      MessageBox(HWND(nil), 'Unable to activate OpenGL rendering context', 'Error', MB_OK or MB_ICONERROR);
      exit;
  
negative.code:   //Try to find mode with slightly worse AA before giving up
    repeat
      iAttributes[19] := AntiAliasing;
      {$IFDEF MSWINDOWS}
      ValidFormat := wglChoosePixelFormatARB(h_dc, @iattributes[0], nil, 1, @pixelFormat, @NumFormats);
      {$ENDIF}
      if ValidFormat and (NumFormats >= 1) then
      begin
        Result := pixelFormat;
  