read_rgba_pixels: Don't force clamping if the renderbuffer is normalized.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user