http://bugs.freedesktop.org/show_bug.cgi?id=10288


[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #2 from [EMAIL PROTECTED]  2007-03-17 07:43 PST -------
I've checked in the patch which you posted to the mesa3d-dev list:

diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index 994fb16..8ef4039 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -3608,6 +3608,22 @@ #endif /* FEATURE_EXT_texture_sRGB */
                GLint col;
                for (col = 0; col < width; col++) {
                   (*texImage->FetchTexelf)(texImage, col, row, img,
rgba[col]);
+                  if (texImage->TexFormat->BaseFormat == GL_ALPHA) {
+                      rgba[col][RCOMP] = 0.0;
+                      rgba[col][GCOMP] = 0.0;
+                      rgba[col][BCOMP] = 0.0;
+                  } else if (texImage->TexFormat->BaseFormat == GL_LUMINANCE)
{
+                      rgba[col][GCOMP] = 0.0;
+                      rgba[col][BCOMP] = 0.0;
+                      rgba[col][ACOMP] = 1.0;
+                  } else if (texImage->TexFormat->BaseFormat ==
GL_LUMINANCE_ALPHA) {
+                      rgba[col][GCOMP] = 0.0;
+                      rgba[col][BCOMP] = 0.0;
+                  } else if (texImage->TexFormat->BaseFormat == GL_INTENSITY)
{
+                      rgba[col][GCOMP] = 0.0;
+                      rgba[col][BCOMP] = 0.0;
+                      rgba[col][ACOMP] = 1.0;
+                  }
                }
                _mesa_pack_rgba_span_float(ctx, width, (GLfloat (*)[4]) rgba,
                                           format, type, dest,


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to