   [D3D10] NULL Render Target
  Is it possible to have a NULL render target in D3D10? I'm trying to write a shader that does nothing but render the scene's depth to a depth stencil view. I don't care about the render target in this shader.I looked up the documentation for OMSetRenderTargets and it says:ppRenderTargetViews [in] Pointer to an array of render targets (see ID3D10RenderTargetView) to bind to the device. If this parameter is NULL, no render targets are bound. See Remarks.I looked at the remarks, but it mentions nothing about NULL render targets.But when I trying doing this:device->OMSetRenderTargets(1, NULL, dsv);It throws an "Access violation reading location 0x00000000" error on that line.Does this mean the documentation is wrong? Or am I doing something wrong?   
  TryID3D10RenderTargetView* rt[1] = {0};then pass rt.  You have to pass a valid array, but the array elements can be null.   ;  That did the trick. Thanks.   