   D3D10 wireframe
  Hello,I am trying to learn DirectX10 and want to render a quad as a wire frame.So I created a ID3D10RasterizerState* and a D3D10_RASTERIZER_DESC, used ZeroMemory() on it, set FillMode to D3D10_FILL_WIREFRAME,  created the State with ID3D10Device::CreateRasterizerState() and then set it by using ID3D10Device::RSSetState().But it does not work. If I do something like this:HR(ID3D10Device::CreateRasterizerState())where HR is defined as:#define HR(x)   {HRESULT hr = (x); if(FAILED(hr))    {  DXTrace(__FILE__, (DWORD)__LINE__, hr, L#x, true);}  }it outputs:ERROR CODE: E_INVALIDARGWhat am I doing wrong?If I need to show some code, let me know :DThanks in advance.   
  I'm not sure if this is correct (Not sure if the function is static), but try this:HR(MyD3D10Device->CreateRasterizerState(...args...));  Enable the debugging flag during device creation and then run your application in a debugger.  Details on the error message will be printed to the output and will indicate which argument is incorrect and why.   ;  oh, i just omitted the arguments of this function. because i was to lazy.heres some real code:ID3D10RasterizerState *rasterizer_wireframe;//.. some stuffD3D10_RASTERIZER_DESC wfd;ZeroMemory(&wfd, sizeof(D3D10_RASTERIZER_DESC));wfd.FillMode = D3D10_FILL_WIREFRAME;HR(md3dDevice->CreateRasterizerState(&wfd, &rasterizer_wireframe))And there are no errors at compiletime, they are at runtime.The HR(x) define outputs some infos in a MessageBox:http://www.abload.de/img/errr7mw.gifsorry :D//edit: ah, i misunderstood you, DieterVW.Yep, that was the solution. It threw the error message, because I did not set the D3D10_RASTERIZER_DESC::CullMode. I thought it would be ok, if its just null. But ok. :D   