From: Brian Date: Fri, 2 Nov 2007 18:22:43 +0000 (-0600) Subject: added check for fb==NULL X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a5df4239c2a1b91e36e7d1191c19a078e6b74a22;p=mesa.git added check for fb==NULL --- 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. */