summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olvaffe@gmail.com>2009-09-15 15:22:18 +0800
committerChia-I Wu <olvaffe@gmail.com>2009-09-15 15:23:31 +0800
commitdea3bc04c195582b347c3eeab9ac952ba7564017 (patch)
tree58f6d4e94d8f4e9ef6d2a01bc987f1911afce130
parentb4b8800315637d9218a81c76f09df7d601710d29 (diff)
mesa/tnl: Add support for GL_FIXED in _tnl_import_array.
-rw-r--r--src/mesa/tnl/t_draw.c12
1 files changed, 12 insertions, 0 deletions
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;