[PATCH 6/6] wined3d: Set z = 0.0 via the projection matrix instead of depth clamping.

Matteo Bruni matteo.mystral at gmail.com
Wed Feb 11 16:56:37 CST 2015


2015-02-11 21:53 GMT+01:00 Stefan Dösinger <stefan at codeweavers.com>:
> This works on cards that don't implement ARB_depth_clamp like r500
> cards.
>
> Note that texturing is influenced by position.w, not position.z.
> ---
>  dlls/wined3d/directx.c    |  7 -------
>  dlls/wined3d/state.c      | 33 ++++++++++-----------------------
>  dlls/wined3d/wined3d_gl.h |  2 --
>  3 files changed, 10 insertions(+), 32 deletions(-)

It's probably hard to measure and not going to really matter in
practice but toggling the depth clamping (where supported) might be
slightly faster than updating the projection matrix.
I'm not NACKing the patch though.



More information about the wine-devel mailing list