aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/varray.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2015-11-03 16:16:00 -0800
committerIan Romanick <[email protected]>2015-11-24 11:31:29 -0800
commit4a644f1caadc6b3e26b5f0ac60ac855152e38e59 (patch)
treef4455159cc1455ac263de73da039e10bd7e298d2 /src/mesa/main/varray.h
parenta336fcd36a4743c1ea6f8549cb31b48277359717 (diff)
mesa: Refactor enable_vertex_array_attrib to make _mesa_enable_vertex_array_attrib
Pulls the parts of enable_vertex_array_attrib that aren't just parameter validation out into a function that can be called from other parts of Mesa (e.g., meta). _mesa_enable_vertex_array_attrib can also be used to enable fixed-function arrays. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main/varray.h')
-rw-r--r--src/mesa/main/varray.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/varray.h b/src/mesa/main/varray.h
index 744b3365127..a766afad5bc 100644
--- a/src/mesa/main/varray.h
+++ b/src/mesa/main/varray.h
@@ -99,6 +99,11 @@ _mesa_update_array_format(struct gl_context *ctx,
GLuint relativeOffset, bool flush_vertices);
extern void
+_mesa_enable_vertex_array_attrib(struct gl_context *ctx,
+ struct gl_vertex_array_object *vao,
+ unsigned attrib);
+
+extern void
_mesa_bind_vertex_buffer(struct gl_context *ctx,
struct gl_vertex_array_object *vao,
GLuint index,