From 4b1205d53b26dadba13578cf875feeeaa2018f74 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michel=20D=C3=A4nzer?= Date: Thu, 17 Nov 2011 15:04:40 +0100 Subject: [PATCH] Revert "read_rgba_pixels: Don't force clamping if the renderbuffer is normalized." This reverts commit b11c16752a18ef8dfb96d9f0ead6ecb62bde6773. Breaks at least luminance destination formats. --- src/mesa/main/readpix.c | 3 +-- 1 file changed, 1 insertion(+), 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; } -- 2.30.2