[Mesa-dev] [PATCH] st/dri: fix crash with HUD and single buffering
Marek Olšák
maraeo at gmail.com
Tue Mar 26 17:57:43 PDT 2013
---
src/gallium/state_trackers/dri/common/dri_drawable.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/state_trackers/dri/common/dri_drawable.c b/src/gallium/state_trackers/dri/common/dri_drawable.c
index 00ae1da..cd4a36a 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);
--
1.7.10.4
More information about the mesa-dev
mailing list