projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29280ac
)
swrast: fix pointer arithmetic error in get_texel_array()
author
Brian Paul
<brianp@vmware.com>
Mon, 20 Apr 2009 20:14:26 +0000
(14:14 -0600)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_texcombine.c
b/src/mesa/swrast/s_texcombine.c
index 08c49f5f2c34870e112d610abad0062b0da3d0b6..889164b986132e798d2bb902701b6237394e713a 100644
(file)
--- 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);
}