summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_readpix.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2006-11-14 14:22:43 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2006-11-14 14:22:43 +0000
commit6cc5a82206503190c2387266b4ad1b075d9dec62 (patch)
tree2c11e55aeb17e33425c4383167dfc1abec2c6af0 /src/mesa/swrast/s_readpix.c
parentefa91b9a8f39dd49a59e4fc5524657f7cd5ae8ac (diff)
Make sure RENDER_FINISH is called on the zero pixel case. Reported by
Haihao Xiang.
Diffstat (limited to 'src/mesa/swrast/s_readpix.c')
-rw-r--r--src/mesa/swrast/s_readpix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast/s_readpix.c b/src/mesa/swrast/s_readpix.c
index cbfb7712d8..128ce0afb3 100644
--- a/src/mesa/swrast/s_readpix.c
+++ b/src/mesa/swrast/s_readpix.c
@@ -554,7 +554,7 @@ _swrast_ReadPixels( GLcontext *ctx,
/* Do all needed clipping here, so that we can forget about it later */
if (!_mesa_clip_readpixels(ctx, &x, &y, &width, &height, &clippedPacking)) {
/* The ReadPixels region is totally outside the window bounds */
- return;
+ goto end;
}
if (clippedPacking.BufferObj->Name) {