wined3d: Make "value" optional in wined3d_device_get_predication().

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2017-05-10 15:54:06 +02:00 committed by Alexandre Julliard
parent e3d69b5580
commit febf242ff5
1 changed files with 2 additions and 1 deletions

View File

@ -3620,7 +3620,8 @@ struct wined3d_query * CDECL wined3d_device_get_predication(struct wined3d_devic
{
TRACE("device %p, value %p.\n", device, value);
*value = device->state.predicate_value;
if (value)
*value = device->state.predicate_value;
return device->state.predicate;
}