Mesa (master): swrast: fix 16-bit/channel rendering

Brian Paul brianp at kemper.freedesktop.org
Mon May 10 04:09:29 UTC 2010


Module: Mesa
Branch: master
Commit: e3d8d25ebf4e052432f13513d03a420bc22d399d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e3d8d25ebf4e052432f13513d03a420bc22d399d

Author: Brian Paul <brianp at vmware.com>
Date:   Sun May  9 22:08:54 2010 -0600

swrast: fix 16-bit/channel rendering

NOTE: This is a candidate for the 7.8 stable branch

---

 src/mesa/swrast_setup/ss_context.c |    2 +-
 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 ebd1574..0fcb7c7 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,




More information about the mesa-commit mailing list