From: Gareth H. <ga...@va...> - 2001-03-28 16:25:00
|
Brian Paul wrote: > > Right. Though it's the format that would be GL_COLOR_INDEX and the > internalFormat would be GL_COLOR_INDEX_*. Indeed :-) > That sounds right. I'd have to review the code to say for certain. Cool. > I think a few more utility routines may be in order. Because in all > the drivers' TexImage*() functions we always have to do something > like this (lots of details omitted): > > if (anyPixelTransferOps) { > allocate tempBuffer > _mesa_transfer_teximage(dest = tempBuffer, source = userData) > _mesa_convert_texsubimage2d(dest = texImage->Data, src = tempBuffer); > free tempBuffer > } > else { > _mesa_convert_texsubimage2d(dest = texImage->Data, src = tempBuffer); > > } > > In the 3dfx driver it's more complicated because of the image > rescaling that's sometimes needed. Hence my earlier argument that _mesa convert_texsubimage2d() shouldn't be allowed to fail :-) -- Gareth |