Mesa (master): swrast: add missing returns
Nicolai Hähnle
nh at kemper.freedesktop.org
Wed Oct 7 18:39:38 UTC 2009
Module: Mesa
Branch: master
Commit: 14f21c785087f86d291243400e59ebfc8721c4f6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=14f21c785087f86d291243400e59ebfc8721c4f6
Author: Brian Paul <brianp at vmware.com>
Date: Tue Oct 6 19:05:23 2009 -0600
swrast: add missing returns
---
src/mesa/swrast/s_depth.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/mesa/swrast/s_depth.c b/src/mesa/swrast/s_depth.c
index 26e23f0..a9d678d 100644
--- a/src/mesa/swrast/s_depth.c
+++ b/src/mesa/swrast/s_depth.c
@@ -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);
More information about the mesa-commit
mailing list