From: Alan Hourihane Date: Mon, 3 Nov 2008 20:05:55 +0000 (+0000) Subject: gallium: no renderbuffer, so just exit. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e1f0e173e5619d2ce95a74158803d94b3d6ff8a;p=mesa.git gallium: no renderbuffer, so just exit. --- diff --git a/src/mesa/state_tracker/st_framebuffer.c b/src/mesa/state_tracker/st_framebuffer.c index 1ff70093823..fe9900d92ca 100644 --- a/src/mesa/state_tracker/st_framebuffer.c +++ b/src/mesa/state_tracker/st_framebuffer.c @@ -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 );