mesa: set clamp bit in glGetTexImage for GL_UNSIGNED_NORMALIZED
authorAnuj Phogat <anuj.phogat@gmail.com>
Wed, 25 Jan 2012 04:06:27 +0000 (20:06 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Fri, 27 Jan 2012 21:22:52 +0000 (13:22 -0800)
commit5665b5cc31da70e833f80e7a17bfa034d2f7ba44
treeff63d42568ea86f847c7679986ebf3b4ba2805ed
parent5f65598cc79eccd38bf7f95ab167ed62e575daf2
mesa: set clamp bit in glGetTexImage for GL_UNSIGNED_NORMALIZED

Color clamping should be enabled in glGetTexImage if texture dataType is
GL_UNSIGNED_NORMALIZED and format is GL_LUMINANCE or GL_LUMINANCE_ALPHA

Fixes 2 Intel oglconform test cases: pxconv-gettex and pxtrans-gettex
https://bugs.freedesktop.org/show_bug.cgi?id=40864

NOTE: This is a candidate for the 8.0 branch

Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texgetimage.c