summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichel Dänzer <[email protected]>2011-11-16 17:39:50 +0100
committerMichel Dänzer <[email protected]>2011-11-17 10:46:44 +0100
commitb11c16752a18ef8dfb96d9f0ead6ecb62bde6773 (patch)
tree8ee15760c0b977edb4035394c8e91c5be269c22a /src
parent4517153278b078b031bb4af10a4d69050eaec9d6 (diff)
read_rgba_pixels: Don't force clamping if the renderbuffer is normalized.
Signed-off-by: Michel Dänzer <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/readpix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index 86b87534d31..9bb58e7a4dc 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -285,7 +285,8 @@ read_rgba_pixels( struct gl_context *ctx,
return;
if ((ctx->Color._ClampReadColor == GL_TRUE || type != GL_FLOAT) &&
- !_mesa_is_integer_format(format)) {
+ !_mesa_is_integer_format(format) &&
+ _mesa_get_format_datatype(rb->Format) != GL_UNSIGNED_NORMALIZED) {
transferOps |= IMAGE_CLAMP_BIT;
}