wined3d: Only warn about 0 compare functions in wined3d_gl_compare_func().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5be4a0e388
commit
3821dcf996
|
@ -301,7 +301,10 @@ GLenum wined3d_gl_compare_func(enum wined3d_cmp_func f)
|
||||||
case WINED3D_CMP_ALWAYS:
|
case WINED3D_CMP_ALWAYS:
|
||||||
return GL_ALWAYS;
|
return GL_ALWAYS;
|
||||||
default:
|
default:
|
||||||
FIXME("Unrecognized compare function %#x.\n", f);
|
if (!f)
|
||||||
|
WARN("Unrecognized compare function %#x.\n", f);
|
||||||
|
else
|
||||||
|
FIXME("Unrecognized compare function %#x.\n", f);
|
||||||
return GL_NONE;
|
return GL_NONE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue