[965] Fully initialize the texture surface key data (padding around GLboolean)
authorEric Anholt <eric@anholt.net>
Sun, 16 Dec 2007 20:09:22 +0000 (12:09 -0800)
committerEric Anholt <eric@anholt.net>
Sun, 16 Dec 2007 20:09:22 +0000 (12:09 -0800)
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 048e098cfb21603a35911c55a87c92d609991360..f940cea4cd16732b135f8af2faa71a5dae1a5da0 100644 (file)
@@ -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;