summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/dri/dri2.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-02-11 14:40:47 -0800
committerEric Anholt <eric@anholt.net>2015-02-18 15:15:29 -0800
commit935ee6b652a97c1db08d999aa48eba0574e0b23e (patch)
tree320247160a814356c96d4d63b9920e04d4162f9b /src/gallium/state_trackers/dri/dri2.c
parent6eadde51bba26bc57da7b26cbb40d783259d4a5f (diff)
downloadexternal_mesa3d-935ee6b652a97c1db08d999aa48eba0574e0b23e.zip
external_mesa3d-935ee6b652a97c1db08d999aa48eba0574e0b23e.tar.gz
external_mesa3d-935ee6b652a97c1db08d999aa48eba0574e0b23e.tar.bz2
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>
Diffstat (limited to 'src/gallium/state_trackers/dri/dri2.c')
-rw-r--r--src/gallium/state_trackers/dri/dri2.c2
1 files changed, 1 insertions, 1 deletions
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;