OSDN Git Service

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)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 2 Feb 2012 18:21:07 +0000 (11:21 -0700)
commit736f1e53e4f08e9c56ce6480695f5de0f2caa982
treeebe58ef129f83bb2a82318eea2b71b7a26b0858b
parentd45d250ad102f22b7e1b51bd6d68366b8f5ca7ff
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>
(cherry picked from commit 5665b5cc31da70e833f80e7a17bfa034d2f7ba44)
src/mesa/main/texgetimage.c