summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_cb_flush.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-02 12:22:43 -0600
committerBrian <[email protected]>2007-11-05 08:04:47 -0700
commita5df4239c2a1b91e36e7d1191c19a078e6b74a22 (patch)
tree07579e3e20478c9de9f67c4553a532c22aa1c423 /src/mesa/state_tracker/st_cb_flush.c
parent29feee2c02a7a558a5448434904991c1dd6eb19f (diff)
added check for fb==NULL
Diffstat (limited to 'src/mesa/state_tracker/st_cb_flush.c')
-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.
*/