summaryrefslogtreecommitdiffstats
path: root/src/mesa/array_cache
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2001-03-17 18:04:54 +0000
committerKeith Whitwell <[email protected]>2001-03-17 18:04:54 +0000
commitbcc513ebf5011a307ec7b1b383f8522e9dc28404 (patch)
treecb77b9996ad3023eea9d0adc267ef9725455851d /src/mesa/array_cache
parent47489c0721348d8f5e5f17b4af63b1c601045116 (diff)
Fix cut&paste bug exposed by clipbug.c demo.
Diffstat (limited to 'src/mesa/array_cache')
-rw-r--r--src/mesa/array_cache/ac_import.c22
1 files 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;
}