diff options
author | Daniel Borca <[email protected]> | 2004-07-13 06:45:56 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-07-13 06:45:56 +0000 |
commit | ba3d088e27aa1a2bba9b91fd452cc4091aab1fe1 (patch) | |
tree | e5963127c3fe155583f263752666c15d79fb12d4 /src | |
parent | 9a9614e4e90e7f22772afecde0665bdbba97bee0 (diff) |
fixed vertex RGBA
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/tdfx/tdfx_vbtmp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/tdfx/tdfx_vbtmp.h b/src/mesa/drivers/dri/tdfx/tdfx_vbtmp.h index fd693330dad..e51e1f561ae 100644 --- a/src/mesa/drivers/dri/tdfx/tdfx_vbtmp.h +++ b/src/mesa/drivers/dri/tdfx/tdfx_vbtmp.h @@ -75,7 +75,7 @@ static void TAG(emit)( GLcontext *ctx, proj = (GLfloat (*)[4])((GLubyte *)proj + proj_stride); } if (IND & TDFX_RGBA_BIT) { - GLubyte *b = (GLubyte *)&v[4]; + GLubyte *b = (GLubyte *)((GLuint *)v + 4); UNCLAMPED_FLOAT_TO_UBYTE(b[0], col[0][2]); UNCLAMPED_FLOAT_TO_UBYTE(b[1], col[0][1]); UNCLAMPED_FLOAT_TO_UBYTE(b[2], col[0][0]); |