summaryrefslogtreecommitdiff
path: root/src/mesa/main/texformat.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-12-22 01:11:13 +0100
committerMarek Olšák <maraeo@gmail.com>2010-12-23 16:54:58 +0100
commitbb5ace68ce9e8bd171a39162ed6bd93632bd6619 (patch)
treeb9e09caf1c2a26ce0b770602143dc69b1f5565d1 /src/mesa/main/texformat.c
parenteb31837a0d4fa4fe115bb288ddb37cbedea954ae (diff)
mesa: implement new texture format L16
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 e10d2e535e..c701143131 100644
--- a/src/mesa/main/texformat.c
+++ b/src/mesa/main/texformat.c
@@ -113,11 +113,13 @@ _mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat,
case 1:
case GL_LUMINANCE:
case GL_LUMINANCE4:
- case GL_LUMINANCE12:
- case GL_LUMINANCE16:
case GL_LUMINANCE8:
return MESA_FORMAT_L8;
+ case GL_LUMINANCE12:
+ case GL_LUMINANCE16:
+ return MESA_FORMAT_L16;
+
/* Luminance/Alpha formats */
case GL_LUMINANCE4_ALPHA4:
return MESA_FORMAT_AL44;