[4/5] WineD3D: SetRenderTarget bypasses stateblock recording

Henri Verbeet hverbeet at gmail.com
Fri Oct 2 03:44:19 CDT 2009


2009/10/1 Stefan Dösinger <stefan at 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]".



More information about the wine-devel mailing list