summaryrefslogtreecommitdiff
path: root/src/mesa/main/dd.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-09-14 23:13:51 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-09-14 23:13:51 +0000
commit64a23a0f9c6a08f6118f6488c191a079c43245a2 (patch)
treedd1a4220c65492a7ae7e37166144cf47185e9cb8 /src/mesa/main/dd.h
parent23316033db12a4d0df10a7d9dbe51b409856a3ac (diff)
updated comments
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r--src/mesa/main/dd.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 68982004a2..0341c50acc 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -1,4 +1,4 @@
-/* $Id: dd.h,v 1.31 2000/09/08 21:44:55 brianp Exp $ */
+/* $Id: dd.h,v 1.32 2000/09/14 23:13:51 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -856,8 +856,11 @@ struct dd_function_table {
void (*RegisterVB)( struct vertex_buffer *VB );
void (*UnregisterVB)( struct vertex_buffer *VB );
- /* Do any processing (eg allocate memory) required to set up a new
- * vertex_buffer.
+ /* When Mesa creates a new vertex buffer it calls Driver.RegisterVB()
+ * so the device driver can allocate its own vertex buffer data and
+ * hook it to the VB->driver_data pointer.
+ * When Mesa destroys a vertex buffer it calls Driver.UnegisterVB()
+ * so the driver can deallocate its own data attached to VB->driver_data.
*/