PATCH: Activate the viewport passed as parameter when executing buffer.

Christian Costa titan.costa at wanadoo.fr
Sat Sep 28 11:56:24 CDT 2002


Changelog :
dlls/ddraw/d3dexecutebuffer.c : execute

Activate the viewport passed as parameter when executing buffer.

Christian Costa   titan.costa at wanadoo.fr
-------------- next part --------------
Index: d3dexecutebuffer.c
===================================================================
RCS file: /home/wine/wine/dlls/ddraw/d3dexecutebuffer.c,v
retrieving revision 1.10
diff -u -r1.10 d3dexecutebuffer.c
--- d3dexecutebuffer.c	27 Sep 2002 22:01:28 -0000	1.10
+++ d3dexecutebuffer.c	28 Sep 2002 16:42:14 -0000
@@ -197,6 +197,12 @@
   void *instr = ilpBuff->desc.lpData + is;
   D3DDPRIVATE((IDirect3DDeviceImpl*)dev);
 
+  /* Should check if the viewport was added or not to the device */
+
+  /* Activate the viewport */
+  ivp->device.active_device1 = (IDirect3DDeviceImpl*)dev;
+  ivp->activate(ivp);
+
   TRACE("ExecuteData : \n");
   if (TRACE_ON(ddraw))
   _dump_executedata(&(ilpBuff->data));


More information about the wine-patches mailing list