diff options
author | Dave Airlie <[email protected]> | 2011-11-27 17:16:27 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-11-28 09:03:17 +0000 |
commit | 47e2e367170edec022481f1487cd980e00ef3203 (patch) | |
tree | 5f01826caad571b162e97566e8d8567ce491d988 /src/mesa/main/image.c | |
parent | 537c687116870c0ec9dd0fa869b29dc6725e1c37 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/image.c')
-rw-r--r-- | src/mesa/main/image.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/image.c b/src/mesa/main/image.c index ca31e53a8cf..72e944e11ac 100644 --- a/src/mesa/main/image.c +++ b/src/mesa/main/image.c @@ -243,12 +243,14 @@ _mesa_components_in_format( GLenum format ) case GL_RGB: case GL_BGR: case GL_RGB_INTEGER_EXT: + case GL_BGR_INTEGER_EXT: return 3; case GL_RGBA: case GL_BGRA: case GL_ABGR_EXT: case GL_RGBA_INTEGER_EXT: + case GL_BGRA_INTEGER_EXT: return 4; default: |