From 88f3b89a2cb77766d2009b9868c44e03abe2dbb2 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 28 Dec 2000 22:11:04 +0000 Subject: Add render stage for unclipped vb's to fx driver. Bump MAX_TEXTURE_UNITS to 8 Fix mem. leak in destroy_lists Fix crash in q3 (cva generally) --- src/mesa/array_cache/ac_import.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/mesa/array_cache') diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c index ca971dc1d84..e7fb795ef50 100644 --- a/src/mesa/array_cache/ac_import.c +++ b/src/mesa/array_cache/ac_import.c @@ -1,4 +1,4 @@ -/* $Id: ac_import.c,v 1.1 2000/12/26 15:14:04 keithw Exp $ */ +/* $Id: ac_import.c,v 1.2 2000/12/28 22:11:05 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -45,6 +45,8 @@ static void reset_texcoord( GLcontext *ctx, GLuint unit ) { ACcontext *ac = AC_CONTEXT(ctx); +/* fprintf(stderr, "%s %d\n", __FUNCTION__, unit); */ + if (ctx->Array._Enabled & _NEW_ARRAY_TEXCOORD(unit)) ac->Current.TexCoord[unit] = &ctx->Array.TexCoord[unit]; else { @@ -69,6 +71,8 @@ static void reset_vertex( GLcontext *ctx ) ac->Current.Vertex = &ctx->Array.Vertex; ac->Writeable.Vertex = GL_FALSE; ac->NewArrayState &= ~_NEW_ARRAY_VERTEX; + +/* fprintf(stderr, "%s\n", __FUNCTION__); */ } @@ -178,6 +182,8 @@ static void import_texcoord( GLcontext *ctx, GLuint unit, ASSERT(stride == 4*sizeof(GLfloat) || stride == 0); ASSERT(ac->count - ac->start < ctx->Const.MaxArrayLockSize); +/* fprintf(stderr, "%s %d old ptr %p\n", __FUNCTION__, unit, from->Ptr); */ + _math_trans_4f( to->Ptr, from->Ptr, from->StrideB, @@ -191,6 +197,8 @@ static void import_texcoord( GLcontext *ctx, GLuint unit, to->Type = GL_FLOAT; ac->Current.TexCoord[unit] = to; ac->Writeable.TexCoord[unit] = GL_TRUE; + +/* fprintf(stderr, "%s %d new ptr %p\n", __FUNCTION__, unit, to->Ptr); */ } static void import_vertex( GLcontext *ctx, @@ -200,6 +208,8 @@ static void import_vertex( GLcontext *ctx, struct gl_client_array *from = ac->Current.Vertex; struct gl_client_array *to = &ac->Cache.Vertex; +/* fprintf(stderr, "(ac) %s\n", __FUNCTION__); */ + /* Limited choices at this stage: */ ASSERT(type == GL_FLOAT); -- cgit v1.2.3