projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b3cbec
)
swrast: add missing returns
author
Brian Paul
<brianp@vmware.com>
Wed, 7 Oct 2009 01:05:23 +0000
(19:05 -0600)
committer
Brian Paul
<brianp@vmware.com>
Wed, 7 Oct 2009 14:05:28 +0000
(08:05 -0600)
src/mesa/swrast/s_depth.c
patch
|
blob
|
history
diff --git
a/src/mesa/swrast/s_depth.c
b/src/mesa/swrast/s_depth.c
index 26e23f02d597e62503aba443f5ce4e3f845d09b0..a9d678d1800211addf65522b86c14babe2534075 100644
(file)
--- 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);