gallium/dri: Shut up a compiler warning.

The compiler doesn't see that buffers is set in the !image case and used
in the !image case.

Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Eric Anholt 2015-02-11 14:40:47 -08:00
parent 6eadde51bb
commit 935ee6b652
1 changed files with 1 additions and 1 deletions

View File

@ -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;