From: Brian Paul Date: Mon, 20 Apr 2009 20:14:26 +0000 (-0600) Subject: swrast: fix pointer arithmetic error in get_texel_array() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5d5db81076c6a6e07336f90fbfb7eeaeaf216278;p=mesa.git swrast: fix pointer arithmetic error in get_texel_array() This came from commit 1b2ab023673261b4b942e1126c0b599d02fbd4a0 --- diff --git a/src/mesa/swrast/s_texcombine.c b/src/mesa/swrast/s_texcombine.c index 08c49f5f2c3..889164b9861 100644 --- a/src/mesa/swrast/s_texcombine.c +++ b/src/mesa/swrast/s_texcombine.c @@ -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); }