[Mesa-dev] [PATCH 2/3] mesa: make slow_read_rgba_pixels() a void function

Brian Paul brianp at vmware.com
Fri Nov 18 16:39:01 PST 2011


The boolean return value was ignored by the caller.
---
 src/mesa/main/readpix.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index 86b8753..aa893de 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -224,7 +224,7 @@ fast_read_rgba_pixels_memcpy( struct gl_context *ctx,
    return GL_TRUE;
 }
 
-static GLboolean
+static void
 slow_read_rgba_pixels( struct gl_context *ctx,
 		       GLint x, GLint y,
 		       GLsizei width, GLsizei height,
@@ -263,8 +263,6 @@ slow_read_rgba_pixels( struct gl_context *ctx,
    }
 
    ctx->Driver.UnmapRenderbuffer(ctx, rb);
-
-   return GL_TRUE;
 }
 
 /*
-- 
1.7.3.4



More information about the mesa-dev mailing list