Stefan Dösinger : wined3d: Delay render target activation.

Alexandre Julliard julliard at winehq.org
Wed Jul 2 06:03:42 CDT 2008


Module: wine
Branch: master
Commit: 2d4d18b59dc26b8aee04553671b942071d9213b9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2d4d18b59dc26b8aee04553671b942071d9213b9

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Tue Jun 17 01:42:55 2008 +0200

wined3d: Delay render target activation.

The ActivateContext in SetRenderTarget was an old regression prevention,
but now it is time to remove it.

---

 dlls/wined3d/device.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 416e828..7754e50 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -6724,13 +6724,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderTarget(IWineD3DDevice *iface,
          * SetViewport may catch NOP viewport changes, which would occur when switching between equally sized targets
          */
         IWineD3DDeviceImpl_MarkStateDirty(This, STATE_VIEWPORT);
-
-        /* Activate the new render target for now. This shouldn't stay here, but is needed until all methods using gl activate the
-         * ctx properly.
-         * Use resourceload usage, this will just set the drawables and context but not apply any states. The stateblock may be
-         * incomplete or incorrect when SetRenderTarget is called. DrawPrim() will apply the states when it is called.
-         */
-        ActivateContext(This, This->render_targets[0], CTXUSAGE_RESOURCELOAD);
     }
     return WINED3D_OK;
 }




More information about the wine-cvs mailing list