From: Eric Anholt Date: Sun, 16 Dec 2007 20:09:22 +0000 (-0800) Subject: [965] Fully initialize the texture surface key data (padding around GLboolean) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1daf5b3ad6460f33870b9f016a6615c5f1f8aa5e;p=mesa.git [965] Fully initialize the texture surface key data (padding around GLboolean) --- diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 048e098cfb2..f940cea4cd1 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c @@ -203,6 +203,7 @@ brw_update_texture_surface( GLcontext *ctx, GLuint unit ) struct gl_texture_image *firstImage = tObj->Image[0][intelObj->firstLevel]; struct brw_wm_surface_key key; + memset(&key, 0, sizeof(key)); key.target = tObj->Target; key.format = firstImage->TexFormat->MesaFormat; key.bo = intelObj->mt->region->buffer;