From eb31837a0d4fa4fe115bb288ddb37cbedea954ae Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 22 Dec 2010 00:32:33 +0100 Subject: mesa: implement new texture format A16 --- src/mesa/main/texgetimage.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mesa/main/texgetimage.c') diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c index c94f88e16e6..428e41009ad 100644 --- a/src/mesa/main/texgetimage.c +++ b/src/mesa/main/texgetimage.c @@ -437,6 +437,11 @@ get_tex_memcpy(struct gl_context *ctx, GLenum format, GLenum type, GLvoid *pixel type == GL_UNSIGNED_BYTE) { memCopy = GL_TRUE; } + else if (texImage->TexFormat == MESA_FORMAT_A16 && + format == GL_ALPHA && + type == GL_UNSIGNED_SHORT) { + memCopy = GL_TRUE; + } } if (memCopy) { -- cgit v1.2.3