summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2010-05-09 22:08:54 -0600
committerBrian Paul <brianp@vmware.com>2010-05-09 22:08:56 -0600
commite3d8d25ebf4e052432f13513d03a420bc22d399d (patch)
tree8d6887a42e6c4c4b46a42f816a00eea796a49168 /src
parent9b990c81c0f3b80988d159dd054ef3c0637d2d9e (diff)
swrast: fix 16-bit/channel rendering
NOTE: This is a candidate for the 7.8 stable branch
Diffstat (limited to 'src')
-rw-r--r--src/mesa/swrast_setup/ss_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/swrast_setup/ss_context.c b/src/mesa/swrast_setup/ss_context.c
index ebd1574c43..0fcb7c77af 100644
--- a/src/mesa/swrast_setup/ss_context.c
+++ b/src/mesa/swrast_setup/ss_context.c
@@ -115,7 +115,7 @@ setup_vertex_format(GLcontext *ctx)
GLboolean intColors = !ctx->FragmentProgram._Current
&& !ctx->ATIFragmentShader._Enabled
&& ctx->RenderMode == GL_RENDER
- && CHAN_TYPE == GL_UNSIGNED_BYTE;
+ && CHAN_TYPE != GL_FLOAT;
if (intColors != swsetup->intColors ||
!RENDERINPUTS_EQUAL(tnl->render_inputs_bitset,