diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/mesa/tnl/t_draw.c | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/tnl/t_draw.c b/src/mesa/tnl/t_draw.c index 30f1bf323c..e2aac64ad7 100644 --- a/src/mesa/tnl/t_draw.c +++ b/src/mesa/tnl/t_draw.c @@ -174,6 +174,16 @@ static void _tnl_import_array( struct gl_context *ctx,        case GL_HALF_FLOAT:  	 convert_half_to_float(input, ptr, fptr, count, sz);  	 break; +      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;        default:  	 assert(0);  	 break;  | 
