Module: wine Branch: master Commit: b2f09fd20421d0a5e179b42332ca63bc5ac17d8a URL: http://source.winehq.org/git/wine.git/?a=commit;h=b2f09fd20421d0a5e179b42332... Author: Stefan Doesinger <stefan(a)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=b2f09fd20421d0a5e179b4...