mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
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:
parent
c66256b484
commit
b5d25dd849
1 changed files with 1 additions and 1 deletions
|
|
@ -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. */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue