   [D3D10] Render to multiple viewports
  Hello everyone,I'm trying to achieve split screen view, but i don't seem to find out how to render to a specific viewport correctly, should the code look like this?for ( loop through viewports.. ){    _device->RSSetViewports ( 1, &viewportV );    render scene normally}_swapChain->Present ( 0, 0 );This does not work, and if i place Present inside the loop, the view is like, render once for viewport 1 and once for viewport 2, only one of them is active at a time, the other is empty.So how could i render to multiple viewports properly?Thanks-Hassan   
  What exactly doesn’t work?A common mistake I saw in this area is related to the use of ClearDepthStencilView and ClearRenderTargetView. Both methods clear the whole resource and not only the current viewport. If they called for every viewport they will clear what’s already rendered in another one.;  Oh yes, that's it, i was clearing the screen once for each viewport, thanks alot mate! it works now!   