mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
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
1 changed files with 3 additions and 1 deletions
|
@ -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)))
|
||||
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;
|
||||
if ((ret = (a->semantic_idx - b->semantic_idx)))
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue