swrast: fix 16-bit/channel rendering

NOTE: This is a candidate for the 7.8 stable branch
This commit is contained in:
Brian Paul
2010-05-09 22:08:54 -06:00
parent 9b990c81c0
commit e3d8d25ebf
+1 -1
View File
@@ -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,