From 4d6994e40ebccf9428fc757d845e25c0e0c12cef Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 16 Feb 2011 10:07:05 +0100 Subject: mesa: fix mipmap generation for MESA_FORMAT_AL44 This was missed when implementing AL44. --- src/mesa/main/formats.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mesa/main/formats.c') diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index b8fed18257..1e39536347 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: -- cgit v1.2.3