Henri Verbeet : wined3d: Merge most of the code for shader_glsl_cmp() and shader_glsl_cnd().