summaryrefslogtreecommitdiff
path: root/src/mesa/main/texformat.c
diff options
context:
space:
mode:
authorMarek Olšák <maraeo@gmail.com>2010-12-22 01:12:20 +0100
committerMarek Olšák <maraeo@gmail.com>2010-12-23 16:54:58 +0100
commitfd8aa7ac71699facf9839e2ae56b5e37579c6bcc (patch)
treec47179613e19630bbd95d7594f75edca64814864 /src/mesa/main/texformat.c
parentbb5ace68ce9e8bd171a39162ed6bd93632bd6619 (diff)
mesa: implement new texture format I16
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 c701143131..82427176fb 100644
--- a/src/mesa/main/texformat.c
+++ b/src/mesa/main/texformat.c
@@ -137,11 +137,13 @@ _mesa_choose_tex_format( struct gl_context *ctx, GLint internalFormat,
case GL_INTENSITY:
case GL_INTENSITY4:
- case GL_INTENSITY12:
- case GL_INTENSITY16:
case GL_INTENSITY8:
return MESA_FORMAT_I8;
+ case GL_INTENSITY12:
+ case GL_INTENSITY16:
+ return MESA_FORMAT_I16;
+
case GL_COLOR_INDEX:
case GL_COLOR_INDEX1_EXT:
case GL_COLOR_INDEX2_EXT: