From dea3bc04c195582b347c3eeab9ac952ba7564017 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 15 Sep 2009 15:22:18 +0800 Subject: mesa/tnl: Add support for GL_FIXED in _tnl_import_array. --- src/mesa/tnl/t_draw.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c index 04fa106300..978a303f59 100644 --- a/src/mesa/tnl/t_draw.c +++ b/src/mesa/tnl/t_draw.c @@ -158,6 +158,18 @@ static void _tnl_import_array( GLcontext *ctx, case GL_DOUBLE: CONVERT(GLdouble, (GLfloat)); break; +#if FEATURE_fixedpt + case GL_FIXED: + { + GLuint i, j; + for (i = 0; i < count; i++) { + const GLint *in = (GLint *) (ptr + i * input->StrideB); + for (j = 0; j < sz; j++) + *fptr++ = *in++ / 65536.0f; + } + } + break; +#endif default: assert(0); break; -- cgit v1.2.3