summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-11-03 20:05:55 +0000
committerAlan Hourihane <alanh@tungstengraphics.com>2008-11-03 20:06:44 +0000
commit9e1f0e173e5619d2ce95a74158803d94b3d6ff8a (patch)
treeab1bb71fe1c75552de78395605d41c1c47366348 /src/mesa/state_tracker
parent95438727ddc4012d6e2db843d7173607b2a23b56 (diff)
downloadexternal_mesa3d-9e1f0e173e5619d2ce95a74158803d94b3d6ff8a.zip
external_mesa3d-9e1f0e173e5619d2ce95a74158803d94b3d6ff8a.tar.gz
external_mesa3d-9e1f0e173e5619d2ce95a74158803d94b3d6ff8a.tar.bz2
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 1ff7009..fe9900d 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 );