[Mesa-dev] [Bug 46679] New: glReadPixels on a luminance texture returns the wrong values
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Feb 27 06:35:33 PST 2012
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: mesa-dev at lists.freedesktop.org
ReportedBy: neil at linux.intel.com
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.
More information about the mesa-dev
mailing list