mesa: clamp colors to [0,1] for glGetTexImage() when format is GL_LUMINANCE
authorBrian Paul <brianp@vmware.com>
Fri, 3 Apr 2009 23:10:31 +0000 (17:10 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 3 Apr 2009 23:10:31 +0000 (17:10 -0600)
commit35d88e1ac2cd34d5cc62f521654d79f5b24fcdf8
treeca61c928bdd4958d09c7510218471e320014f46e
parentb7cb6650c1603cd9e6f26b32f5e0fae8377d59b8
mesa: clamp colors to [0,1] for glGetTexImage() when format is GL_LUMINANCE

For luminance, we add R+G+B and it seems we should always clamp in case.
src/mesa/main/texstore.c