vbo: return VP_NONE from get_program_mode() if running fixed-func vertex program
[mesa.git] / src / mesa / vbo / vbo_save.h
index 9558f83883758571988c8678fb419a19c2422d28..86bbd24f7b11fb31aa62115d7b36390a950a06fe 100644 (file)
@@ -64,6 +64,13 @@ struct vbo_save_vertex_list {
    GLubyte attrsz[VBO_ATTRIB_MAX];
    GLuint vertex_size;
 
+   /* Copy of the final vertex from node->vertex_store->bufferobj.
+    * Keep this in regular (non-VBO) memory to avoid repeated
+    * map/unmap of the VBO when updating GL current data.
+    */
+   GLfloat *current_data;
+   GLuint current_size;
+
    GLuint buffer_offset;
    GLuint count;
    GLuint wrap_count;          /* number of copied vertices at start */