From d2f0be152e3eeb88639f44c13adfb4a23688a23b Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 12 Feb 2004 01:57:43 +0000 Subject: more updates , gears sorta works --- src/mesa/drivers/dri/mach64/mach64_native_vb.c | 29 -------------------------- 1 file changed, 29 deletions(-) (limited to 'src/mesa/drivers/dri/mach64/mach64_native_vb.c') diff --git a/src/mesa/drivers/dri/mach64/mach64_native_vb.c b/src/mesa/drivers/dri/mach64/mach64_native_vb.c index e4d97ad5c5..0bf9afacbf 100644 --- a/src/mesa/drivers/dri/mach64/mach64_native_vb.c +++ b/src/mesa/drivers/dri/mach64/mach64_native_vb.c @@ -184,35 +184,6 @@ void TAG(print_vertex)( GLcontext *ctx, const VERTEX *v ) fprintf(stderr, "\n"); } -static void do_import( struct vertex_buffer *VB, - struct gl_client_array *to, - struct gl_client_array *from ) -{ - GLuint count = VB->Count; - - if (!to->Ptr) { - to->Ptr = ALIGN_MALLOC( VB->Size * 4 * sizeof(GLubyte), 32 ); - to->Type = GL_UNSIGNED_BYTE; - } - - /* No need to transform the same value 3000 times. - */ - if (!from->StrideB) { - to->StrideB = 0; - count = 1; - } - else - to->StrideB = 4 * sizeof(GLubyte); - - _math_trans_4ub( (GLubyte (*)[4]) to->Ptr, - from->Ptr, - from->StrideB, - from->Type, - from->Size, - 0, - count); -} - /* Interpolate the elements of the VB not included in typical hardware * vertices. * -- cgit v1.2.3