diff options
author | Brian Paul <[email protected]> | 2005-11-12 18:44:29 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2005-11-12 18:44:29 +0000 |
commit | ba3da6154c324cc916845bc5de3de077d0b59ffc (patch) | |
tree | 45554c510334b1cff6133c5698487fe1a437a05f /src/mesa/main/image.c | |
parent | e3636b4114327411a3ff7590a61a652d10c18a34 (diff) |
Added OSMesaColorClamp(), bug 4917
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index b9a032307c2..0a117a967b6 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -1079,7 +1079,7 @@ _mesa_pack_rgba_span_float( GLcontext *ctx, if (dstFormat == GL_LUMINANCE || dstFormat == GL_LUMINANCE_ALPHA) { /* compute luminance values */ - if (ctx->ClampFragmentColors) { + if (ctx->Color.ClampReadColor == GL_TRUE) { for (i = 0; i < n; i++) { GLfloat sum = rgba[i][RCOMP] + rgba[i][GCOMP] + rgba[i][BCOMP]; luminance[i] = CLAMP(sum, 0.0F, 1.0F); |