From: Brian Paul Date: Fri, 4 Jul 2008 16:02:16 +0000 (-0600) Subject: gallium: replace assertion with conditional X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9ca1c62a963ca7024c4bccf83af3f90955cd5068;p=mesa.git gallium: replace assertion with conditional --- diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c index 7245798d0da..8406bf247fc 100644 --- a/src/mesa/state_tracker/st_cb_fbo.c +++ b/src/mesa/state_tracker/st_cb_fbo.c @@ -422,7 +422,8 @@ st_finish_render_texture(GLcontext *ctx, struct pipe_screen *screen = ctx->st->pipe->screen; struct st_renderbuffer *strb = st_renderbuffer(att->Renderbuffer); - assert(strb); + if (!strb) + return; ctx->st->pipe->flush(ctx->st->pipe, PIPE_FLUSH_RENDER_CACHE, NULL);