projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3499f6
)
intel: Avoid pointer arithmetic on void *.
author
Eric Anholt
<eric@anholt.net>
Wed, 1 Jul 2009 05:57:56 +0000
(22:57 -0700)
committer
Eric Anholt
<eric@anholt.net>
Wed, 1 Jul 2009 05:57:56 +0000
(22:57 -0700)
Bug #22000.
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c
index a0d8f0c27af11f93aab40062cd9903fd06c5f641..311fe01f29439e7757def23c405a43f262b9beef 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
+++ b/
src/mesa/drivers/dri/intel/intel_mipmap_tree.c
@@
-479,7
+479,7
@@
intel_miptree_image_data(struct intel_context *intel,
0, 0, /* source x, y */
dst->level[level].width, height); /* width, height */
- src
+=
src_image_pitch * dst->cpp;
+ src
= (char *)src +
src_image_pitch * dst->cpp;
}
}