From 9e1f0e173e5619d2ce95a74158803d94b3d6ff8a Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Mon, 3 Nov 2008 20:05:55 +0000 Subject: [PATCH] gallium: no renderbuffer, so just exit. --- src/mesa/state_tracker/st_framebuffer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 ); -- 2.30.2