Commit 241d3062 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

- protect viewport setting with GL lock

- no need anymore to flush to FB on execute buffer calling
parent f87c54f1
......@@ -2232,12 +2232,16 @@ GL_IDirect3DDeviceImpl_7_SetViewport(LPDIRECT3DDEVICE7 iface,
}
This->active_viewport = *lpData;
ENTER_GL();
/* Set the viewport */
glDepthRange(lpData->dvMinZ, lpData->dvMaxZ);
glViewport(lpData->dwX,
This->surface->surface_desc.dwHeight - (lpData->dwHeight + lpData->dwY),
lpData->dwWidth, lpData->dwHeight);
LEAVE_GL();
return DD_OK;
}
......
......@@ -74,11 +74,6 @@ static void execute(IDirect3DExecuteBufferImpl *This,
if (TRACE_ON(ddraw))
_dump_executedata(&(This->data));
if (((IDirect3DDeviceGLImpl *) lpDevice)->state == SURFACE_MEMORY_DIRTY) {
lpDevice->flush_to_framebuffer(lpDevice, NULL, ((IDirect3DDeviceGLImpl *) lpDevice)->lock_surf);
}
((IDirect3DDeviceGLImpl *) lpDevice)->state = SURFACE_GL;
while (1) {
LPD3DINSTRUCTION current = (LPD3DINSTRUCTION) instr;
BYTE size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment