diff options
author | Jordan Justen <[email protected]> | 2012-12-28 11:08:20 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2013-01-12 01:45:01 -0800 |
commit | f1c5b5d15e241b3a91eb110d47394e0c016012f2 (patch) | |
tree | 43d1fc07788a318a2c8bf2c8dab2145311bc2a6d /src/mesa/main/glformats.c | |
parent | 89e07ccf613e6a5f65acc597ce888d4c12014647 (diff) |
glformats: support _mesa_bytes_per_pixel for 2101010+GL_RGB
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/main/glformats.c')
-rw-r--r-- | src/mesa/main/glformats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index fb69421c086..ff56ffad04f 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main/glformats.c @@ -271,7 +271,8 @@ _mesa_bytes_per_pixel(GLenum format, GLenum type) case GL_UNSIGNED_INT_10_10_10_2: case GL_UNSIGNED_INT_2_10_10_10_REV: if (format == GL_RGBA || format == GL_BGRA || format == GL_ABGR_EXT || - format == GL_RGBA_INTEGER_EXT || format == GL_BGRA_INTEGER_EXT) + format == GL_RGBA_INTEGER_EXT || format == GL_BGRA_INTEGER_EXT || + format == GL_RGB) return sizeof(GLuint); else return -1; |