https://bugs.freedesktop.org/show_bug.cgi?id=46679

             Bug #: 46679
           Summary: glReadPixels on a luminance texture returns the wrong
                    values
    Classification: Unclassified
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: [email protected]
        ReportedBy: [email protected]


According to the GL spec, it seems when reading values from a texture in
luminance format it should set the R component to the luminance value and set
the G and B components to zero but Mesa is currently setting all of the
components to the luminance value. This makes it so that if you try to read it
back in luminance format you don't get the same values you put in. There is
already code in texgetimage.c to handle this for glGetTexImage so I guess we
should just copy that to somewhere in readpix.c.

This bug was found while discussing bug 46631.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to