Commit a408fdf5 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

wined3d: Handle null semantics in stream output description cache.

parent 07beacb7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment