wined3d: Only generate the clipplane emulation KIL if a clipplane is used.
commitd6547c535b7d7142841f6ab5a580abba27198a18
authorStefan Dösinger <stefan@codeweavers.com>
Sun, 30 Aug 2009 19:02:05 +0000 (30 21:02 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 8 Sep 2009 11:03:03 +0000 (8 13:03 +0200)
treea0821d7245f923d1169c046d67d0b3fe6f097f98
parent5a1fb6bd9c332e43da02effbbec88aeb25511409
wined3d: Only generate the clipplane emulation KIL if a clipplane is used.

The KIL is quite expensive because it forces drivers to disable early Z
discard. It is cheaper to generate and switch between two shaders.
dlls/wined3d/arb_program_shader.c
dlls/wined3d/utils.c