From 20a88cca3f91e6aad9382e636abdaaa83c05b471 Mon Sep 17 00:00:00 2001 From: Michal Lipski Date: Fri, 7 May 2010 15:56:24 +0200 Subject: [PATCH] gallium: Check if buffers != NULL while count > 0 in dri2_drawable_process_buffers() --- src/gallium/state_trackers/dri/drm/dri2.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/dri/drm/dri2.c b/src/gallium/state_trackers/dri/drm/dri2.c index e1216f1..40ef448 100644 --- a/src/gallium/state_trackers/dri/drm/dri2.c +++ b/src/gallium/state_trackers/dri/drm/dri2.c @@ -268,6 +268,8 @@ dri2_drawable_process_buffers(struct dri_drawable *drawable, boolean have_depth = FALSE; unsigned i, bind; + if (buffers == NULL && count > 0) return; + if (drawable->old_num == count && drawable->old_w == dri_drawable->w && drawable->old_h == dri_drawable->h && -- 1.6.4.4