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:
Henri Verbeet 2017-05-31 11:07:02 +02:00 committed by Alexandre Julliard
parent 5be4a0e388
commit 3821dcf996

View File

@ -301,7 +301,10 @@ GLenum wined3d_gl_compare_func(enum wined3d_cmp_func f)
case WINED3D_CMP_ALWAYS:
return GL_ALWAYS;
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;
}
}