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>
This commit is contained in:
Vinson Lee 2012-11-13 23:20:42 -08:00
parent 59b3d3ad6e
commit 10f214e5b2

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