From 8a3a4b6fae75905088ce4fcb42fc50cb09763a10 Mon Sep 17 00:00:00 2001 From: Mathias Fröhlich Date: Wed, 7 Feb 2018 08:59:13 +0100 Subject: vbo: Make use of _DrawVAO from immediate mode draw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Finally use an internal VAO to execute immediate mode draws. Avoid duplicate state validation for immediate mode draws. Remove client arrays previously used exclusively for immediate mode draws. Signed-off-by: Mathias Fröhlich Reviewed-by: Brian Paul --- src/mesa/vbo/vbo_private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa/vbo/vbo_private.h') diff --git a/src/mesa/vbo/vbo_private.h b/src/mesa/vbo/vbo_private.h index 2640f3e21f9..1f3d31f577a 100644 --- a/src/mesa/vbo/vbo_private.h +++ b/src/mesa/vbo/vbo_private.h @@ -48,6 +48,8 @@ struct vbo_context { /* The array of inputs used for _DrawVAO draws. */ struct vbo_inputs draw_arrays; + struct gl_vertex_array_object *VAO; + struct vbo_exec_context exec; struct vbo_save_context save; -- cgit v1.2.3