summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2017-03-30 21:24:13 +1100
committerTimothy Arceri <[email protected]>2017-03-31 13:43:38 +1100
commit94224950ddb609bfbee1ffb0ca3621c0bda6101f (patch)
treec067934e927f9cfb3815aaef063165affb2167f7 /src/mesa/main
parent2e70de7d2f703cf81cbe114a99f6328045143c26 (diff)
mesa: move FLUSH_VERTICES() call to meta
There is no need for this to be in the common code. Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/varray.c9
-rw-r--r--src/mesa/main/varray.h2
2 files changed, 3 insertions, 8 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c
index 92e3f4d1f8a..af5abc8e83c 100644
--- a/src/mesa/main/varray.c
+++ b/src/mesa/main/varray.c
@@ -280,17 +280,13 @@ _mesa_update_array_format(struct gl_context *ctx,
GLuint attrib, GLint size, GLenum type,
GLenum format, GLboolean normalized,
GLboolean integer, GLboolean doubles,
- GLuint relativeOffset, bool flush_vertices)
+ GLuint relativeOffset)
{
struct gl_array_attributes *const array = &vao->VertexAttrib[attrib];
GLint elementSize;
assert(size <= 4);
- if (flush_vertices) {
- FLUSH_VERTICES(ctx, 0);
- }
-
elementSize = _mesa_bytes_per_vertex_attrib(size, type);
assert(elementSize != -1);
@@ -439,8 +435,7 @@ update_array_format(struct gl_context *ctx,
}
_mesa_update_array_format(ctx, vao, attrib, size, type, format,
- normalized, integer, doubles, relativeOffset,
- false);
+ normalized, integer, doubles, relativeOffset);
return true;
}
diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h
index 8c30d16ea3a..92165710d8e 100644
--- a/src/mesa/main/varray.h
+++ b/src/mesa/main/varray.h
@@ -94,7 +94,7 @@ _mesa_update_array_format(struct gl_context *ctx,
GLuint attrib, GLint size, GLenum type,
GLenum format, GLboolean normalized,
GLboolean integer, GLboolean doubles,
- GLuint relativeOffset, bool flush_vertices);
+ GLuint relativeOffset);
extern void
_mesa_enable_vertex_array_attrib(struct gl_context *ctx,