2015-02-11 21:53 GMT+01:00 Stefan Dösinger stefan@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.