diff options
author | Marek Olšák <[email protected]> | 2013-03-27 01:56:25 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-03-28 18:17:21 +0100 |
commit | a19f6e880acfb8ec5b5ea0900602de5a27b12664 (patch) | |
tree | c930b22de9537ee585776a05267e53967327629c /src/gallium/state_trackers/dri | |
parent | 6b5dfa42c900b36c5083ce6b7b767b23dcbd5f95 (diff) |
st/dri: fix crash with HUD and single buffering
Diffstat (limited to 'src/gallium/state_trackers/dri')
-rw-r--r-- | src/gallium/state_trackers/dri/common/dri_drawable.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.c b/src/gallium/state_trackers/dri/common/dri_drawable.c index 00ae1daed8a..cd4a36a139f 100644 --- a/src/gallium/state_trackers/dri/common/dri_drawable.c +++ b/src/gallium/state_trackers/dri/common/dri_drawable.c @@ -435,7 +435,8 @@ dri_flush(__DRIcontext *cPriv, } /* Flush the drawable. */ - if (flags & __DRI2_FLUSH_DRAWABLE) { + if ((flags & __DRI2_FLUSH_DRAWABLE) && + drawable->textures[ST_ATTACHMENT_BACK_LEFT]) { /* Resolve MSAA buffers. */ if (drawable->stvis.samples > 1) { dri_msaa_resolve(ctx, drawable, ST_ATTACHMENT_BACK_LEFT); |