swrast: fix pointer arithmetic error in get_texel_array()
authorBrian Paul <brianp@vmware.com>
Mon, 20 Apr 2009 20:14:26 +0000 (14:14 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 20 Apr 2009 20:15:04 +0000 (14:15 -0600)
This came from commit 1b2ab023673261b4b942e1126c0b599d02fbd4a0

src/mesa/swrast/s_texcombine.c

index 08c49f5f2c34870e112d610abad0062b0da3d0b6..889164b986132e798d2bb902701b6237394e713a 100644 (file)
@@ -49,8 +49,7 @@ typedef float (*float4_array)[4];
 static INLINE float4_array
 get_texel_array(SWcontext *swrast, GLuint unit)
 {
-   return (float4_array)
-      (swrast->TexelBuffer + unit * MAX_WIDTH * 4 * sizeof(GLfloat));
+   return (float4_array) (swrast->TexelBuffer + unit * MAX_WIDTH * 4);
 }