diff options
| -rw-r--r-- | src/mesa/swrast/s_readpix.c | 2 | 
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) { | 
