mesa: clamp luminance if needed.
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 19 Nov 2008 03:22:35 +0000 (11:22 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 19 Nov 2008 03:30:30 +0000 (11:30 +0800)
commit2f9ceb158afffe5ea390b909261988267e663e36
treecd7ac67f37ccbe2ffff5d1de187e12883b191c97
parent80d6379722a1249ce13db79a898d340644936f67
mesa: clamp luminance if needed.

This fixes glReadPixels(GL_LUMINANCE, GL_FLOAT)/glGetTexImage(GL_LUMINANCE, GL_FLOAT) issue
on fixed-point color buffers.
src/mesa/main/image.c
src/mesa/main/texstore.c