From bb5ace68ce9e8bd171a39162ed6bd93632bd6619 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 22 Dec 2010 01:11:13 +0100 Subject: mesa: implement new texture format L16 --- src/mesa/main/texformat.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mesa/main/texformat.c') 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; -- cgit v1.2.3