wined3d: Use clamp() instead of max() for calculating the clamped cosine in the ffp...
commitff6ce4c669ac901abdc9664d891b4b6d044df295
authorHenri Verbeet <hverbeet@codeweavers.com>
Wed, 4 Sep 2013 06:56:43 +0000 (4 08:56 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 4 Sep 2013 09:36:50 +0000 (4 11:36 +0200)
tree5424fc54de6d8f7b5df8fdcf4feca76f11d43471
parent725b069e68d288009f1a3d9bcb7120adddfda96b
wined3d: Use clamp() instead of max() for calculating the clamped cosine in the ffp lighting calculations.

On typical hardware, the clamp() would be an instruction modifier, while the
max() would need an extra instruction.
dlls/wined3d/glsl_shader.c