mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 19:18:42 +00:00
wined3d: Properly check if an attribute is used in TRACE_STRIDED.
This commit is contained in:
parent
458afd64bd
commit
0c4201d5fd
1 changed files with 4 additions and 3 deletions
|
@ -941,10 +941,11 @@ do { \
|
|||
} while(0)
|
||||
|
||||
/* Trace vector and strided data information */
|
||||
#define TRACE_VECTOR(name) TRACE( #name "=(%f, %f, %f, %f)\n", name.x, name.y, name.z, name.w);
|
||||
#define TRACE_STRIDED(si, name) TRACE( #name "=(data:%p, stride:%d, format:%#x, vbo %d, stream %u)\n", \
|
||||
#define TRACE_VECTOR(name) TRACE( #name "=(%f, %f, %f, %f)\n", name.x, name.y, name.z, name.w)
|
||||
#define TRACE_STRIDED(si, name) do { if (si->use_map & (1 << name)) \
|
||||
TRACE( #name "=(data:%p, stride:%d, format:%#x, vbo %d, stream %u)\n", \
|
||||
si->elements[name].data, si->elements[name].stride, si->elements[name].format_desc->format, \
|
||||
si->elements[name].buffer_object, si->elements[name].stream_idx);
|
||||
si->elements[name].buffer_object, si->elements[name].stream_idx); } while(0)
|
||||
|
||||
/* Defines used for optimizations */
|
||||
|
||||
|
|
Loading…
Reference in a new issue