summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2012-11-13 23:20:42 -0800
committerVinson Lee <[email protected]>2012-11-21 15:02:35 -0800
commit10f214e5b248e5dd5f323c689549cd66d2f6ad22 (patch)
tree730afc2af3e361ab69f786f1c214d2f0a4d817e4 /src
parent59b3d3ad6e77af92eb23b77c59dc60e6f9566d87 (diff)
i915: Fix wrong sizeof argument in i915_update_tex_unit.
The bug was found by Coverity. NOTE: This is a candidate for the stable branches. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i915/i915_texstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_texstate.c b/src/mesa/drivers/dri/i915/i915_texstate.c
index 4bd5e72cf67..94a8e5522ec 100644
--- 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. */