From: Andreas W. <and...@cs...> - 2003-07-24 11:04:02
|
Hi... > OK, I've fixed the problem. The fixes are in the CVS trunk. ...and thanks for the fix :) Now I changed the transfer function to: (line 196 in colortable_bug.c:) /* init colortable */ for( i = 0; i < 256; i++ ) { transfer_func[i][0] = i; transfer_func[i][1] = 0; transfer_func[i][2] = 0; transfer_func[i][3] = 255; } and I believe the resulting image should be red. The Onyx gives me that but Mesa stays grayscale. I think the reason is that the one-dimensional texture is expanded in swrast_texture_table_lookup (s_texture.c: line 4194), but in texture_apply (s_texture.c: line 4225), specifically (s_texture.c: line 3910) only the red component is used. Thanks for your opinion, Andreas |