From: Gareth H. <ga...@va...> - 2001-03-28 14:22:44
|
Gareth Hughes wrote: > > 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. Man, I need a coffee... Old: texImage->Format texImage->Type texImage->IntFormat New: texImage->Format /* Regular base format */ texImage->TexFormat->Type /* Internal format type */ texImage->TexFormat->IntFormat /* Internal GL format */ Still: texImage->TexFormat->MesaFormat /* MESA_FORMAT_* */ So, texImage->Format is initialized by core Mesa before the DD texture image function is called. All the driver (or texstore utils) needs to do plug in an appropriate format into texImage->TexFormat. -- Gareth |