summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-04-20 14:14:26 -0600
committerBrian Paul <[email protected]>2009-04-20 14:15:04 -0600
commit5d5db81076c6a6e07336f90fbfb7eeaeaf216278 (patch)
treecb7dc5a28ea604bb4d1b5cac200c86485ffd7294
parent29280ac69eeeb7ebddd07f027e65357e50508d93 (diff)
swrast: fix pointer arithmetic error in get_texel_array()
This came from commit 1b2ab023673261b4b942e1126c0b599d02fbd4a0
-rw-r--r--src/mesa/swrast/s_texcombine.c3
1 files changed, 1 insertions, 2 deletions
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);
}