From 2b7c042525c6895016ab547745b15880b2751f36 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Thu, 19 Apr 2001 12:22:09 +0000 Subject: Fix striding of color material inputs. (Fixes glean colorLitPerf) --- src/mesa/main/macros.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/mesa/main') diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index b9ccd906d4..9a32ad5bd4 100644 --- a/src/mesa/main/macros.h +++ b/src/mesa/main/macros.h @@ -1,4 +1,4 @@ -/* $Id: macros.h,v 1.20 2001/03/18 08:53:49 gareth Exp $ */ +/* $Id: macros.h,v 1.21 2001/04/19 12:22:09 keithw Exp $ */ /* * Mesa 3-D graphics library @@ -73,7 +73,8 @@ #define STRIDE_F(p, i) (p = (GLfloat *)((GLubyte *)p + i)) #define STRIDE_UI(p, i) (p = (GLuint *)((GLubyte *)p + i)) #define STRIDE_4UB(p, i) (p = (GLubyte (*)[4])((GLubyte *)p + i)) -#define STRIDE_4CHAN(p, i) (p = (GLchan (*)[4])((GLchan *)p + i)) +#define STRIDE_4CHAN(p, i) (p = (GLchan (*)[4])((GLubyte *)p + i)) +#define STRIDE_CHAN(p, i) (p = (GLchan *)((GLubyte *)p + i)) #define STRIDE_T(p, t, i) (p = (t)((GLubyte *)p + i)) -- cgit v1.2.3