diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-09-15 18:50:51 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2009-09-15 18:50:51 +0800 |
commit | 16678f5dbf96f24f47a2159da3277ecdb2c62393 (patch) | |
tree | 4244fdeb307c97470f345d8d7cdd3c4d7834341c /src/mesa/tnl/t_draw.c | |
parent | a49adc545bae522851b095c05df9d82d78fc78c8 (diff) | |
parent | 705fed33eaf60341b6ebc7c0d202dab3f18543a8 (diff) |
Merge commit 'eee/mesa-es' into android
Diffstat (limited to 'src/mesa/tnl/t_draw.c')
-rw-r--r-- | src/mesa/tnl/t_draw.c | 12 |
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; |