wined3d: Fix GLSL cnd instruction

H. Verbeet hverbeet at
Thu Apr 5 01:55:42 CDT 2007

On 05/04/07, Fabian Bieler <der.fabe at> wrote:
> According to MSDN the cnd instruction should translate:
> dst = src0 > 0.5 ? src1 : src2;
> This matches the ARB implementation in wined3d and fixes the borders in civ4.
> Note: On nvidia hardware this patch breaks the outro of Half-Life 2 with
> dxlevel 80 and GLSL due to a driver bug.
You should update the comment above the instruction as well then.

More information about the wine-patches mailing list