diff options
author | Dave Airlie <airlied@redhat.com> | 2011-11-27 17:16:27 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-11-28 09:03:17 +0000 |
commit | 47e2e367170edec022481f1487cd980e00ef3203 (patch) | |
tree | 5f01826caad571b162e97566e8d8567ce491d988 /src/mesa/main/pack.c | |
parent | 537c687116870c0ec9dd0fa869b29dc6725e1c37 (diff) | |
download | external_mesa3d-47e2e367170edec022481f1487cd980e00ef3203.zip external_mesa3d-47e2e367170edec022481f1487cd980e00ef3203.tar.gz external_mesa3d-47e2e367170edec022481f1487cd980e00ef3203.tar.bz2 |
image/pack: fix missing GL_BGR(A)_INTEGER support.
These codepaths were missing the cases for BGR_INTEGER/BGRA_INTEGER.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/mesa/main/pack.c')
-rw-r--r-- | src/mesa/main/pack.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/pack.c b/src/mesa/main/pack.c index bd85031..4754d34 100644 --- a/src/mesa/main/pack.c +++ b/src/mesa/main/pack.c @@ -2291,6 +2291,7 @@ get_component_mapping(GLenum format, *aDst = 3; break; case GL_BGR: + case GL_BGR_INTEGER: *rSrc = 2; *gSrc = 1; *bSrc = 0; @@ -2312,6 +2313,7 @@ get_component_mapping(GLenum format, *aDst = 3; break; case GL_BGRA: + case GL_BGRA_INTEGER: *rSrc = 2; *gSrc = 1; *bSrc = 0; |