diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-06-22 08:02:46 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-06-22 08:02:46 -0600 |
commit | 1bf507656921f216a69599143f1aef9bbb170b4e (patch) | |
tree | 0022a11f9dff8bc9def1ca61a6bcd248aff77482 /src/mesa/swrast_setup | |
parent | 6a3ed5eb9655ef7e9f188077375f882a7d74a7ce (diff) | |
download | external_mesa3d-1bf507656921f216a69599143f1aef9bbb170b4e.zip external_mesa3d-1bf507656921f216a69599143f1aef9bbb170b4e.tar.gz external_mesa3d-1bf507656921f216a69599143f1aef9bbb170b4e.tar.bz2 |
Fix feedback color bug #11332. In feedback mode, produce float colors.
Diffstat (limited to 'src/mesa/swrast_setup')
-rw-r--r-- | src/mesa/swrast_setup/ss_context.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/swrast_setup/ss_context.c b/src/mesa/swrast_setup/ss_context.c index cd4ac57..50b93b3 100644 --- a/src/mesa/swrast_setup/ss_context.c +++ b/src/mesa/swrast_setup/ss_context.c @@ -125,6 +125,7 @@ setup_vertex_format(GLcontext *ctx) if (RENDERINPUTS_TEST( index_bitset, _TNL_ATTRIB_COLOR0 )) { swsetup->intColors = !ctx->FragmentProgram._Current && !ctx->ATIFragmentShader._Enabled + && ctx->RenderMode == GL_RENDER && CHAN_TYPE == GL_UNSIGNED_BYTE; if (swsetup->intColors) EMIT_ATTR( _TNL_ATTRIB_COLOR0, EMIT_4CHAN_4F_RGBA, color ); |