swrast: add missing returns

This commit is contained in:
Brian Paul
2009-10-06 19:05:23 -06:00
parent 4b3cbecb3a
commit 14f21c7850

View File

@@ -1211,6 +1211,7 @@ _swrast_read_depth_span_float( GLcontext *ctx, struct gl_renderbuffer *rb,
if (!rb) {
/* really only doing this to prevent FP exceptions later */
_mesa_bzero(depth, n * sizeof(GLfloat));
return;
}
ASSERT(rb->_BaseFormat == GL_DEPTH_COMPONENT);
@@ -1274,6 +1275,7 @@ _swrast_read_depth_span_uint( GLcontext *ctx, struct gl_renderbuffer *rb,
if (!rb) {
/* really only doing this to prevent FP exceptions later */
_mesa_bzero(depth, n * sizeof(GLfloat));
return;
}
ASSERT(rb->_BaseFormat == GL_DEPTH_COMPONENT);