execute: Activate the viewport passed as parameter when executing

buffer.
This commit is contained in:
Christian Costa 2002-09-29 18:01:13 +00:00 committed by Alexandre Julliard
parent c3fa405ab7
commit 92810b90c1
1 changed files with 6 additions and 0 deletions

View File

@ -197,6 +197,12 @@ static void execute(LPDIRECT3DEXECUTEBUFFER lpBuff,
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));