2009/10/1 Stefan Dösinger stefan@codeweavers.com:
/* Finally, reset the viewport as the MSDN states. Tests show that stateblock recording is ignored.
* the change goes directly into the primary stateblock.
*/
This->stateBlock->viewport.Height = ((IWineD3DSurfaceImpl *)This->render_targets[0])->currentDesc.Height;
This->stateBlock->viewport.Width = ((IWineD3DSurfaceImpl *)This->render_targets[0])->currentDesc.Width;
I know you wrote tests for this, could you please submit those as well? "pRenderTarget" should work just as well as "This->render_targets[0]".