mesa: make slow_read_rgba_pixels() a void function
authorBrian Paul <brianp@vmware.com>
Sat, 19 Nov 2011 00:39:01 +0000 (17:39 -0700)
committerBrian Paul <brianp@vmware.com>
Sat, 19 Nov 2011 14:28:07 +0000 (07:28 -0700)
The boolean return value was ignored by the caller.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/readpix.c

index 86b87534d31540c59d8bc3dabaf50ef784fdda12..aa893deeda7fec699283d90acb115f19c56432e8 100644 (file)
@@ -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;
 }
 
 /*