gallium: replace assertion with conditional
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 4 Jul 2008 16:02:16 +0000 (10:02 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 4 Jul 2008 16:02:44 +0000 (10:02 -0600)
src/mesa/state_tracker/st_cb_fbo.c

index 7245798d0da511b7108fe2a9d9408017660977a3..8406bf247fcb655476715319b8c51362624c343d 100644 (file)
@@ -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);