Gawain: rename AttribBinding clear for consistency

AttribBinding is only used internally by Gawain.

Part of T51219
This commit is contained in:
Mike Erwin 2017-04-15 13:06:43 -04:00
parent b92b250b08
commit 16f08b08fc
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ typedef struct {
uint16_t enabled_bits; // 1 bit for each attrib
} AttribBinding;
void clear_AttribBinding(AttribBinding*);
void AttribBinding_clear(AttribBinding*);
void get_attrib_locations(const VertexFormat*, AttribBinding*, GLuint program);
unsigned read_attrib_location(const AttribBinding*, unsigned a_idx);

View File

@ -15,7 +15,7 @@
#error "attrib binding code assumes MAX_VERTEX_ATTRIBS = 16"
#endif
void clear_AttribBinding(AttribBinding* binding)
void AttribBinding_clear(AttribBinding* binding)
{
binding->loc_bits = 0;
binding->enabled_bits = 0;
@ -52,7 +52,7 @@ void get_attrib_locations(const VertexFormat* format, AttribBinding* binding, GL
assert(glIsProgram(program));
#endif
clear_AttribBinding(binding);
AttribBinding_clear(binding);
for (unsigned a_idx = 0; a_idx < format->attrib_ct; ++a_idx)
{