wined3d: Handle null semantics in stream output description cache.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
07beacb742
commit
a408fdf5f5
|
@ -5620,7 +5620,9 @@ static int wined3d_so_desc_compare(const void *key, const struct wine_rb_entry *
|
||||||
|
|
||||||
if ((ret = (a->stream_idx - b->stream_idx)))
|
if ((ret = (a->stream_idx - b->stream_idx)))
|
||||||
return ret;
|
return ret;
|
||||||
if ((ret = strcmp(a->semantic_name, b->semantic_name)))
|
if ((ret = (!a->semantic_name - !b->semantic_name)))
|
||||||
|
return ret;
|
||||||
|
if (a->semantic_name && (ret = strcmp(a->semantic_name, b->semantic_name)))
|
||||||
return ret;
|
return ret;
|
||||||
if ((ret = (a->semantic_idx - b->semantic_idx)))
|
if ((ret = (a->semantic_idx - b->semantic_idx)))
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue