summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorAlan Hourihane <[email protected]>2008-11-03 20:05:55 +0000
committerAlan Hourihane <[email protected]>2008-11-03 20:06:44 +0000
commit9e1f0e173e5619d2ce95a74158803d94b3d6ff8a (patch)
treeab1bb71fe1c75552de78395605d41c1c47366348 /src/mesa/state_tracker
parent95438727ddc4012d6e2db843d7173607b2a23b56 (diff)
gallium: no renderbuffer, so just exit.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_framebuffer.c4
1 files changed, 3 insertions, 1 deletions
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 );