title: DirectX: Antialiasing doesn´t work
body: <p>I just want to enable Antialiasing in DirectX9, but it doesn´t seem to do much, and the text drawn with ID3DXFont.DrawText(...) looks jagged too.</p>
  
  <p>Here is the initialization-part</p>
  
  <pre><code>pDirect3D = Direct3DCreate9( D3D_SDK_VERSION);
  memset(&amp;presentParameters, 0, sizeof(_D3DPRESENT_PARAMETERS_));
  presentParameters.BackBufferCount = 1;
  presentParameters.BackBufferWidth = 800;
  presentParameters.BackBufferHeight = 500;
  
  presentParameters.MultiSampleType = D3DMULTISAMPLE_NONMASKABLE;
  presentParameters.MultiSampleQuality = 2;
  
  presentParameters.SwapEffect = D3DSWAPEFFECT_DISCARD;
  presentParameters.hDeviceWindow = hWnd;
  presentParameters.Flags = 0;
  presentParameters.FullScreen_RefreshRateInHz = D3DPRESENT_RATE_DEFAULT;
  presentParameters.PresentationInterval = D3DPRESENT_INTERVAL_DEFAULT;
  presentParameters.BackBufferFormat = D3DFMT_R5G6B5;
  presentParameters.EnableAutoDepthStencil = TRUE;
  presentParameters.AutoDepthStencilFormat = D3DFMT_D16;
  presentParameters.Windowed = TRUE;
  pDirect3D-&gt;CreateDevice(D3DADAPTER_DEFAULT, D3DDEVTYPE_HAL, hWnd,D3DCREATE_SOFTWARE_VERTEXPROCESSING, &amp;presentParameters, &amp;pDevice);
  pDevice-&gt;SetRenderState(D3DRS_CULLMODE, D3DCULL_NONE);
  
  pDevice-&gt;SetRenderState(D3DRS_MULTISAMPLEANTIALIAS, TRUE);
  </code></pre>
  
  <p>Is there something I do wrong?</p>
  
  <pre><code>ShowWindow(hWnd, nCmdShow);
  UpdateWindow(hWnd);
  </code></pre>