Gawain: VertexFormat_add_attrib (function name change)
See intern/gawain for the API change. Other files are updated to use the new name. Also updated every call site to the recommended style: unsigned int foo = VertexFormat_add_attrib(format, "foo", COMP_ ... )
This commit is contained in:
@@ -390,8 +390,8 @@ void GPU_framebuffer_blur(
|
||||
if (format.attrib_ct == 0) {
|
||||
unsigned int i = 0;
|
||||
/* Vertex format */
|
||||
unsigned int pos = add_attrib(&format, "pos", GL_FLOAT, 2, KEEP_FLOAT);
|
||||
unsigned int uvs = add_attrib(&format, "uvs", GL_FLOAT, 2, KEEP_FLOAT);
|
||||
unsigned int pos = VertexFormat_add_attrib(&format, "pos", COMP_F32, 2, KEEP_FLOAT);
|
||||
unsigned int uvs = VertexFormat_add_attrib(&format, "uvs", COMP_F32, 2, KEEP_FLOAT);
|
||||
|
||||
/* Vertices */
|
||||
VertexBuffer_init_with_format(&vbo, &format);
|
||||
|
||||
Reference in New Issue
Block a user