diff options
author | Keith Whitwell <[email protected]> | 2001-04-19 12:22:09 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2001-04-19 12:22:09 +0000 |
commit | 2b7c042525c6895016ab547745b15880b2751f36 (patch) | |
tree | 9c07d66f6aa71c14332bea22c8347d872c953f7d /src/mesa/main | |
parent | 72fc93302cd1d3738a79e981118562a20d3888fb (diff) |
Fix striding of color material inputs. (Fixes glean colorLitPerf)
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/macros.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index b9ccd906d4c..9a32ad5bd49 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)) |