[Bf-blender-cvs] [16f08b08fc2] blender2.8: Gawain: rename AttribBinding clear for consistency

Mike Erwin noreply at git.blender.org
Sat Apr 15 19:10:44 CEST 2017


Commit: 16f08b08fc29b1254269a548d15a05465904c9cd
Author: Mike Erwin
Date:   Sat Apr 15 13:06:43 2017 -0400
Branches: blender2.8
https://developer.blender.org/rB16f08b08fc29b1254269a548d15a05465904c9cd

Gawain: rename AttribBinding clear for consistency

AttribBinding is only used internally by Gawain.

Part of T51219

===================================================================

M	intern/gawain/gawain/attrib_binding.h
M	intern/gawain/src/attrib_binding.c

===================================================================

diff --git a/intern/gawain/gawain/attrib_binding.h b/intern/gawain/gawain/attrib_binding.h
index 9e2431ca379..f1378bff8cc 100644
--- a/intern/gawain/gawain/attrib_binding.h
+++ b/intern/gawain/gawain/attrib_binding.h
@@ -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);
diff --git a/intern/gawain/src/attrib_binding.c b/intern/gawain/src/attrib_binding.c
index bb42aaf66eb..c510de497d8 100644
--- a/intern/gawain/src/attrib_binding.c
+++ b/intern/gawain/src/attrib_binding.c
@@ -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)
 		{




More information about the Bf-blender-cvs mailing list