From c55ebc3e3e556a5bf5cd78cee2807f4cbb6f626a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 8 May 2012 11:40:28 -0600 Subject: [PATCH] vbo: add some comments --- src/mesa/vbo/vbo_save.c | 3 +++ src/mesa/vbo/vbo_save_api.c | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mesa/vbo/vbo_save.c b/src/mesa/vbo/vbo_save.c index 040c9b7a95a..7a97d3c6567 100644 --- a/src/mesa/vbo/vbo_save.c +++ b/src/mesa/vbo/vbo_save.c @@ -49,6 +49,9 @@ static void vbo_save_callback_init( struct gl_context *ctx ) +/** + * Called at context creation time. + */ void vbo_save_init( struct gl_context *ctx ) { struct vbo_context *vbo = vbo_context(ctx); diff --git a/src/mesa/vbo/vbo_save_api.c b/src/mesa/vbo/vbo_save_api.c index 13604333e95..74f5dc9ce68 100644 --- a/src/mesa/vbo/vbo_save_api.c +++ b/src/mesa/vbo/vbo_save_api.c @@ -1506,6 +1506,9 @@ vbo_print_vertex_list(struct gl_context *ctx, void *data) } +/** + * Called during context creation/init. + */ static void _save_current_init(struct gl_context *ctx) { @@ -1529,7 +1532,7 @@ _save_current_init(struct gl_context *ctx) /** - * Initialize the display list compiler + * Initialize the display list compiler. Called during context creation. */ void vbo_save_api_init(struct vbo_save_context *save) -- 2.30.2