swrast: fix pointer arithmetic error in get_texel_array()

This came from commit 1b2ab02367
This commit is contained in:
Brian Paul
2009-04-20 14:14:26 -06:00
parent 29280ac69e
commit 5d5db81076
+1 -2
View 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);
}