mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-31 13:30:42 +01:00
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:
parent
4517153278
commit
b11c16752a
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue