diff options
author | Kenneth Graunke <[email protected]> | 2017-03-19 20:59:08 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-03-20 11:20:51 -0700 |
commit | 2c6c760a4b41f836bb84618b3124fd6356c285dd (patch) | |
tree | a229b083bb3b161e1f2efbb89c227b3a3ae3eaee /src/util/tests | |
parent | a6e212440278df2bb0766a5cf745935d94809144 (diff) |
aubinator: Store enum textual name in iter->value.
gen_field_iterator_next() produces a string representing the value of
the field. For enum values, it also produced a separate "description"
string containing the textual name of the enum.
The only caller of this function combines the two, printing enums as
"<numeric value> (<texture enum name>)". We may as well just store
that in item->value directly, eliminating the description field, and
a layer of wrapping.
v2: Use non-overlapping source and destination strings in snprintf.
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/util/tests')
0 files changed, 0 insertions, 0 deletions