wined3d: Create clip coords only if they are used.
commit0e77a381ea06f8a72caee54d7a8a3714c61e87c1
authorStefan Dösinger <stefan@codeweavers.com>
Sun, 1 Nov 2009 16:03:39 +0000 (1 17:03 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 12 Nov 2009 14:18:00 +0000 (12 15:18 +0100)
tree4d40aca56f6a4b40fb14882a846809752f4e1852
parente8f05eeff3c786c47bdb318f53ad714a29003917
wined3d: Create clip coords only if they are used.

If GL vertex shader clipping is supported (GLSL or NVvp), we currently
always calculate clipping results in the shader. They're gracefully
discarded by opengl, but we need 6 constants / uniforms to calculate
unused values.
dlls/wined3d/arb_program_shader.c
dlls/wined3d/glsl_shader.c
dlls/wined3d/vertexshader.c
dlls/wined3d/wined3d_private.h