projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b5dfa4
)
st/dri: fix crash with HUD and single buffering
author
Marek Olšák
<maraeo@gmail.com>
Wed, 27 Mar 2013 00:56:25 +0000
(
01:56
+0100)
committer
Marek Olšák
<maraeo@gmail.com>
Thu, 28 Mar 2013 17:17:21 +0000
(18:17 +0100)
src/gallium/state_trackers/dri/common/dri_drawable.c
patch
|
blob
|
history
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
(file)
--- 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);