From: Gareth H. <ga...@va...> - 2001-03-28 14:14:13
|
I'm restoring the behaviour of texImage->Format, and will set texImage->IntFormat to the GL format corresponding to the internal Mesa format instead of the internalFormat parameter given by the user. This gives the behaviour I'm looking for (ie. users can find out what format the texture is stored in, and by checking the individual component sizes can acurately determine how the image is stored). As far as I can tell, the texImage->Type field is redundant. We have the number of bytes per texel stored in texImage->TexFormat->TexelBytes, and can thus remove the use of texImage->Type in texstore.c. We'll need to keep the information around so the software rasterizer can determine if it can use an optimize CHAN_TYPE texture sampling function. Thus, I'll remove the BaseFormat field from gl_texture_format, but keep and rename the BaseType field. The software rasterizer will then check the gl_texture_format's Type field as required. -- Gareth |