Gareth Hughes wrote:
>
> CVSROOT: /cvsroot/mesa3d
> Module name: Mesa
> Repository: Mesa/src/swrast/
> Changes by: gareth@usw-pr-cvs1. 01/03/28 12:40:52
>
> Log message:
> More texture format updates. Drivers now need only plug an appropriate
> format into texImage->TexFormat, the rest is handled by core Mesa.
There's a problem.
The internalFormat parameter from glTexImage*D() is no longer being
stored as-is. Instead, it's now a constant in each of the predefined
gl_texture_format structs.
When someone calls glGetTexLevelParameter(target, level,
GL_TEXTURE_INTERNAL_FORMAT, &value), value should return the
orginally requested internalFormat, not the best match, as
we're now doing.
The spec isn't 100% clear on this but that's what the SI does
and what Mesa used to do.
I can restore this if you're too busy.
If the user really wants to know how their texture was actually
stored, the only info they can get is via the GL_TEXTURE_RED/
GREEN/BLUE/ALPHA/LUMINANCE_SIZE, etc queries.
-Brian
|