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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Changelog :
dlls/ddraw/d3dexecutebuffer.c : execute

Activate the viewport passed as parameter when executing buffer.

Christian Costa   titan.costa@wanadoo.fr
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));

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux