swrast: fix pointer arithmetic error in get_texel_array()
This came from commit 1b2ab02367
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user