summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texformat.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-22 00:32:33 +0100
committerMarek Olšák <[email protected]>2010-12-23 16:54:58 +0100
commiteb31837a0d4fa4fe115bb288ddb37cbedea954ae (patch)
treede384dba7f46628e6a9d24900ce3c030b7067989 /src/mesa/main/texformat.c
parentbae9d511f343c7bd5eb66d1d1d18d32b47e738e3 (diff)
mesa: implement new texture format A16
Diffstat (limited to 'src/mesa/main/texformat.c')
-rw-r--r--src/mesa/main/texformat.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index fb738fc6354..e10d2e535e2 100644
--- a/src/mesa/main/texformat.c
+++ b/src/mesa/main/texformat.c
@@ -102,11 +102,13 @@ _mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat,
/* Alpha formats */
case GL_ALPHA:
case GL_ALPHA4:
- case GL_ALPHA12:
- case GL_ALPHA16:
case GL_ALPHA8:
return MESA_FORMAT_A8;
+ case GL_ALPHA12:
+ case GL_ALPHA16:
+ return MESA_FORMAT_A16;
+
/* Luminance formats */
case 1:
case GL_LUMINANCE: