Commit ec2f9615 authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

Make sure the viewport is from the GL (bottom left) not the DirectX

(top left).
parent e1147baa
......@@ -2331,8 +2331,9 @@ HRESULT WINAPI IDirect3DDevice8Impl_SetViewport(LPDIRECT3DDEVICE8 iface, CONST
glDepthRange(pViewport->MinZ, pViewport->MaxZ);
checkGLcall("glDepthRange");
/* Fixme? Note GL requires lower left, DirectX supplies upper left */
glViewport(pViewport->X, pViewport->Y, pViewport->Width, pViewport->Height);
/* Note: GL requires lower left, DirectX supplies upper left */
glViewport(pViewport->X, (This->PresentParms.BackBufferHeight - (pViewport->Y + pViewport->Height)),
pViewport->Width, pViewport->Height);
checkGLcall("glViewport");
......
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