On 05/04/07, Fabian Bieler der.fabe@gmx.net 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.