From 92810b90c10962108d2704741cb294ba2c7af4d7 Mon Sep 17 00:00:00 2001 From: Christian Costa Date: Sun, 29 Sep 2002 18:01:13 +0000 Subject: [PATCH] execute: Activate the viewport passed as parameter when executing buffer. --- dlls/ddraw/d3dexecutebuffer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/ddraw/d3dexecutebuffer.c b/dlls/ddraw/d3dexecutebuffer.c index ed635675a49..db84a353f2b 100644 --- a/dlls/ddraw/d3dexecutebuffer.c +++ b/dlls/ddraw/d3dexecutebuffer.c @@ -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)); -- 2.11.4.GIT