From 1daf5b3ad6460f33870b9f016a6615c5f1f8aa5e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Sun, 16 Dec 2007 12:09:22 -0800 Subject: [PATCH] [965] Fully initialize the texture surface key data (padding around GLboolean) --- src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.30.2