mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-17 04:28:28 +02:00
mesa: use _mesa_lookup_enum_by_nr() in print_array()
Print GL_FLOAT, etc. instead of hex value. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
parent
8787141429
commit
2b07b8d104
1 changed files with 4 additions and 4 deletions
|
|
@ -2309,10 +2309,10 @@ print_array(const char *name, GLint index, const struct gl_client_array *array)
|
|||
fprintf(stderr, " %s[%d]: ", name, index);
|
||||
else
|
||||
fprintf(stderr, " %s: ", name);
|
||||
fprintf(stderr, "Ptr=%p, Type=0x%x, Size=%d, ElemSize=%u, Stride=%d, Buffer=%u(Size %lu)\n",
|
||||
array->Ptr, array->Type, array->Size,
|
||||
array->_ElementSize, array->StrideB,
|
||||
array->BufferObj->Name, (unsigned long) array->BufferObj->Size);
|
||||
fprintf(stderr, "Ptr=%p, Type=%s, Size=%d, ElemSize=%u, Stride=%d, Buffer=%u(Size %lu)\n",
|
||||
array->Ptr, _mesa_lookup_enum_by_nr(array->Type), array->Size,
|
||||
array->_ElementSize, array->StrideB, array->BufferObj->Name,
|
||||
(unsigned long) array->BufferObj->Size);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue