projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59b3d3a
)
i915: Fix wrong sizeof argument in i915_update_tex_unit.
author
Vinson Lee
<vlee@freedesktop.org>
Wed, 14 Nov 2012 07:20:42 +0000
(23:20 -0800)
committer
Vinson Lee
<vlee@freedesktop.org>
Wed, 21 Nov 2012 23:02:35 +0000
(15:02 -0800)
The bug was found by Coverity.
NOTE: This is a candidate for the stable branches.
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/i915_texstate.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i915/i915_texstate.c
b/src/mesa/drivers/dri/i915/i915_texstate.c
index 4bd5e72cf678401089976d1055945e1c38734d37..94a8e5522ecfa890fe6009109d28ecee311c46bd 100644
(file)
--- a/
src/mesa/drivers/dri/i915/i915_texstate.c
+++ b/
src/mesa/drivers/dri/i915/i915_texstate.c
@@
-146,7
+146,7
@@
i915_update_tex_unit(struct intel_context *intel, GLuint unit, GLuint ss3)
GLubyte border[4];
GLfloat maxlod;
- memset(state, 0, sizeof(state));
+ memset(state, 0, sizeof(
*
state));
/*We need to refcount these. */