I am not sure if it is a bug.

The problem is if you call glGetTexImage on SRGB texture with a format 
different to the internal format, you will get wrong data because 
_mesa_get_teximage simply use memcpy on that.

I can image 2 solutions for this, 
1. Add a nonlinear to linear transfer after FetchTexel1f call, this could be 
very slow.
2. Add a no transfer version FetchTexel1f function-pointer to gl_texture_image, 
this is nly used for SRGB on _mesa_get_teximage.

Which one is better?

Thanks
Zou Nan hai


> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: 2007年9月19日 14:01
> To: [email protected]
> Subject: [Mesa3d-dev] [Bug 11877] texture_srgb glGetTexImage failed
> forinternalFormat GL_SRGB_EXT
> 
> http://bugs.freedesktop.org/show_bug.cgi?id=11877
> 
> 
> [EMAIL PROTECTED] changed:
> 
>            What    |Removed                     |Added
> --------------------------------------------------------------------------
> --
>                  CC|                            |mesa3d-
>                    |                            |[EMAIL PROTECTED]
> 
> 
> 
> 
> --
> Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug, or are watching someone who is.
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Mesa3d-dev mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to