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 <vlee@freedesktop.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
(cherry picked from commit 10f214e5b2)
This commit is contained in:
Vinson Lee 2012-11-13 23:20:42 -08:00 committed by Andreas Boll
parent c66256b484
commit b5d25dd849

View file

@ -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. */