gallium: no renderbuffer, so just exit.
authorAlan Hourihane <alanh@tungstengraphics.com>
Mon, 3 Nov 2008 20:05:55 +0000 (20:05 +0000)
committerAlan Hourihane <alanh@tungstengraphics.com>
Mon, 3 Nov 2008 20:06:44 +0000 (20:06 +0000)
src/mesa/state_tracker/st_framebuffer.c

index 1ff700938236cddae6098139d1f5a06bc31a0551..fe9900d92caef28b34d4bdfad536ff4acd020410 100644 (file)
@@ -176,7 +176,9 @@ st_set_framebuffer_surface(struct st_framebuffer *stfb,
    assert(surfIndex < BUFFER_COUNT);
 
    strb = st_renderbuffer(stfb->Base.Attachment[surfIndex].Renderbuffer);
-   assert(strb);
+
+   /* fail */
+   if (!strb) return;
 
    /* replace the renderbuffer's surface/texture pointers */
    pipe_surface_reference( &strb->surface, surf );