summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_flush.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_cb_flush.c b/src/mesa/state_tracker/st_cb_flush.c
index eb47e75b403..819957a1ee6 100644
--- a/src/mesa/state_tracker/st_cb_flush.c
+++ b/src/mesa/state_tracker/st_cb_flush.c
@@ -55,7 +55,9 @@ void st_flush( struct st_context *st )
*/
st->pipe->flush( st->pipe, 0 );
-
+ if (!fb)
+ return;
+
/* XXX: temporary hack. This flag should only be set if we do any
* rendering to the front buffer.
*/