Stefan Doesinger : wined3d: Emulate clipplanes in ARB if the NV extensions are not available.

Alexandre Julliard julliard at winehq.org
Fri Jun 19 08:27:16 CDT 2009


Module: wine
Branch: master
Commit: b2f09fd20421d0a5e179b42332ca63bc5ac17d8a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b2f09fd20421d0a5e179b42332ca63bc5ac17d8a

Author: Stefan Doesinger <stefan at codeweavers.com>
Date:   Wed Jun 17 22:51:34 2009 +0200

wined3d: Emulate clipplanes in ARB if the NV extensions are not available.

This patch tries to find a free texture coordinate to load up to 4 clip
coordinates into the pixel shader, and uses KIL to throw away fragments
that are cut by a clipplane. If no free texture coordinate is found,
clipping is not done. If more than 4 clipplanes are used, only the first
4 are actually enabled. That should be pretty rare though.

---

 dlls/wined3d/arb_program_shader.c |  160 +++++++++++++++++++++++++++++++------
 1 files changed, 136 insertions(+), 24 deletions(-)

Diff:   http://source.winehq.org/git/wine.git/?a=commitdiff;h=b2f09fd20421d0a5e179b42332ca63bc5ac17d8a



More information about the wine-cvs mailing list