summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/readpix.c')
-rw-r--r--src/mesa/main/readpix.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c
index 9bb58e7a4dc..86b87534d31 100644
--- a/src/mesa/main/readpix.c
+++ b/src/mesa/main/readpix.c
@@ -285,8 +285,7 @@ read_rgba_pixels( struct gl_context *ctx,
return;
if ((ctx->Color._ClampReadColor == GL_TRUE || type != GL_FLOAT) &&
- !_mesa_is_integer_format(format) &&
- _mesa_get_format_datatype(rb->Format) != GL_UNSIGNED_NORMALIZED) {
+ !_mesa_is_integer_format(format)) {
transferOps |= IMAGE_CLAMP_BIT;
}