From bcc513ebf5011a307ec7b1b383f8522e9dc28404 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Sat, 17 Mar 2001 18:04:54 +0000 Subject: [PATCH] Fix cut&paste bug exposed by clipbug.c demo. --- src/mesa/array_cache/ac_import.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/mesa/array_cache/ac_import.c b/src/mesa/array_cache/ac_import.c index 3ffcdd6fed6..8bee54a5290 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.9 2001/03/12 00:48:41 gareth Exp $ */ +/* $Id: ac_import.c,v 1.10 2001/03/17 18:04:54 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -366,18 +366,18 @@ static void import_edgeflag( GLcontext *ctx, /* Limited choices at this stage: */ - ASSERT(type == GL_FLOAT); - ASSERT(stride == sizeof(GLfloat) || stride == 0); + ASSERT(type == GL_UNSIGNED_BYTE); + ASSERT(stride == sizeof(GLubyte) || stride == 0); - _math_trans_1f( (GLfloat *) to->Ptr, - from->Ptr, - from->StrideB, - from->Type, - 0, - ac->count - ac->start); + _math_trans_1ub( (GLubyte *) to->Ptr, + from->Ptr, + from->StrideB, + from->Type, + 0, + ac->count - ac->start); - to->StrideB = sizeof(GLfloat); - to->Type = GL_FLOAT; + to->StrideB = sizeof(GLubyte); + to->Type = GL_UNSIGNED_BYTE; ac->IsCached.EdgeFlag = GL_TRUE; } -- 2.30.2