mesa: Branch 'vbo_0_1_branch'
Keith Whitwell
keithw at kemper.freedesktop.org
Mon Jan 15 17:00:49 UTC 2007
src/mesa/vbo/vbo_exec.h | 3 ---
src/mesa/vbo/vbo_exec_array.c | 8 +-------
2 files changed, 1 insertion(+), 10 deletions(-)
New commits:
diff-tree 584def75ad8dd13add5b4ed7e364d13202539539 (from 6ff9b48fe2bb2113689e45c89a7c643e44906d67)
Author: Keith Whitwell <keith at tungstengraphics.com>
Date: Mon Jan 15 16:57:01 2007 +0000
Remove unused index buffer.
diff --git a/src/mesa/vbo/vbo_exec.h b/src/mesa/vbo/vbo_exec.h
index e28913b..a9b01e0 100644
--- a/src/mesa/vbo/vbo_exec.h
+++ b/src/mesa/vbo/vbo_exec.h
@@ -130,9 +130,6 @@ struct vbo_exec_context
* programs:
*/
const struct gl_client_array *inputs[VERT_ATTRIB_MAX];
-
-
- struct gl_buffer_object *index_obj;
} array;
};
diff --git a/src/mesa/vbo/vbo_exec_array.c b/src/mesa/vbo/vbo_exec_array.c
index 15fbdcf..cec353c 100644
--- a/src/mesa/vbo/vbo_exec_array.c
+++ b/src/mesa/vbo/vbo_exec_array.c
@@ -360,8 +360,6 @@ vbo_exec_DrawElements(GLenum mode, GLsiz
void vbo_exec_array_init( struct vbo_exec_context *exec )
{
- GLcontext *ctx = exec->ctx;
-
#if 1
exec->vtxfmt.DrawArrays = vbo_exec_DrawArrays;
exec->vtxfmt.DrawElements = vbo_exec_DrawElements;
@@ -371,14 +369,10 @@ void vbo_exec_array_init( struct vbo_exe
exec->vtxfmt.DrawElements = _mesa_noop_DrawElements;
exec->vtxfmt.DrawRangeElements = _mesa_noop_DrawRangeElements;
#endif
-
- exec->array.index_obj = ctx->Driver.NewBufferObject(ctx, 1, GL_ARRAY_BUFFER_ARB);
}
void vbo_exec_array_destroy( struct vbo_exec_context *exec )
{
- GLcontext *ctx = exec->ctx;
-
- ctx->Driver.DeleteBuffer(ctx, exec->array.index_obj);
+ /* nothing to do */
}
More information about the mesa-commit
mailing list