wined3d: Don't emulate clipplanes with ffp vp and fix a wrong if condition.
commit85af0b2943825cf63666bc9a3eae214ca9a9cff0
authorStefan Dösinger <stefan@codeweavers.com>
Mon, 22 Jun 2009 14:25:37 +0000 (22 16:25 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 23 Jun 2009 13:53:00 +0000 (23 15:53 +0200)
tree6a5c9e6072663e20808ff4ef46c5faf4c377870a
parente096b59ceb394096f31fc8c5f0a0fb9cc8b6c5d9
wined3d: Don't emulate clipplanes with ffp vp and fix a wrong if condition.

b2f09fd20421d0a5e179b42332ca63bc5ac17d8a accidentally got the
device->vs_clipping check wrong. The FFP replacement should emulate
clipping if GL can't do this natively with vertex shaders, not the
other way. Also don't emulate clipping if we're using fixed function
vertex processing because (a) clipping is always supported by GL in
this case, and (b), fragment.texcoord[7] is undefined. (Or in the
worst case set to something bad by the app).
dlls/wined3d/arb_program_shader.c
dlls/wined3d/utils.c
dlls/wined3d/wined3d_private.h