diff options
author | Marek Olšák <[email protected]> | 2011-02-16 10:07:05 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2011-02-16 20:21:40 +0100 |
commit | 4d6994e40ebccf9428fc757d845e25c0e0c12cef (patch) | |
tree | 52b8bdc9f54c30dca682948a6c8210cd2e9b2d25 /src/mesa/main/formats.c | |
parent | 33d8ff9c317eeb1300bc8e189d7b9c00b352323a (diff) |
mesa: fix mipmap generation for MESA_FORMAT_AL44
This was missed when implementing AL44.
Diffstat (limited to 'src/mesa/main/formats.c')
-rw-r--r-- | src/mesa/main/formats.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index b8fed182570..1e395363475 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -1372,7 +1372,11 @@ _mesa_format_to_type_and_comps(gl_format format, *comps = 4; return; - case MESA_FORMAT_AL44: /* XXX this isn't plain GL_UNSIGNED_BYTE */ + case MESA_FORMAT_AL44: + *datatype = MESA_UNSIGNED_BYTE_4_4; + *comps = 2; + return; + case MESA_FORMAT_AL88: case MESA_FORMAT_AL88_REV: case MESA_FORMAT_RG88: |