The compiler doesn't see that buffers is set in the !image case and used in the !image case. --- src/gallium/state_trackers/dri/dri2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/dri/dri2.c b/src/gallium/state_trackers/dri/dri2.c index aecc8eb..7d65ba3 100644 --- a/src/gallium/state_trackers/dri/dri2.c +++ b/src/gallium/state_trackers/dri/dri2.c @@ -368,7 +368,7 @@ dri2_allocate_textures(struct dri_context *ctx, /* Image specific variables */ struct __DRIimageList images; /* Dri2 specific variables */ - __DRIbuffer *buffers; + __DRIbuffer *buffers = NULL; struct winsys_handle whandle; unsigned num_buffers = statts_count; -- 2.1.4 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev