diff options
author | Brian Paul <[email protected]> | 2016-10-10 11:29:14 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-10-13 17:38:49 -0600 |
commit | ff00ab745c9a9d6ef35239ea656a5db0c76de52d (patch) | |
tree | 0ea17a68c9eeafdb5d43b2ebaf8105ca1a131a92 /src/mesa/main/blend.c | |
parent | a710c21ac200fc1c80a6209862e837f0a75f4cc5 (diff) |
mesa: replace gl_framebuffer::_IntegerColor wih _IntegerBuffers
Use a bitmask to indicate which color buffers are integer-valued, rather
than a bool. Also, the old field was mis-computed. If an integer buffer
was followed by a non-integer buffer, the _IntegerColor field was wrongly
set to false.
This fixes the new piglit gl-3.1-mixed-int-float-fbo test.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/blend.c')
-rw-r--r-- | src/mesa/main/blend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c index ad79ee011d2..0322799af54 100644 --- a/src/mesa/main/blend.c +++ b/src/mesa/main/blend.c @@ -945,7 +945,7 @@ _mesa_update_clamp_fragment_color(struct gl_context *ctx, * - there is an integer colorbuffer */ if (!drawFb || !drawFb->_HasSNormOrFloatColorBuffer || - drawFb->_IntegerColor) + drawFb->_IntegerBuffers) ctx->Color._ClampFragmentColor = GL_FALSE; else ctx->Color._ClampFragmentColor = |