aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texgetimage.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-12-22 01:11:13 +0100
committerMarek Olšák <[email protected]>2010-12-23 16:54:58 +0100
commitbb5ace68ce9e8bd171a39162ed6bd93632bd6619 (patch)
treeb9e09caf1c2a26ce0b770602143dc69b1f5565d1 /src/mesa/main/texgetimage.c
parenteb31837a0d4fa4fe115bb288ddb37cbedea954ae (diff)
mesa: implement new texture format L16
Diffstat (limited to 'src/mesa/main/texgetimage.c')
-rw-r--r--src/mesa/main/texgetimage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/main/texgetimage.c b/src/mesa/main/texgetimage.c
index 428e41009ad..71b8ce43f80 100644
--- a/src/mesa/main/texgetimage.c
+++ b/src/mesa/main/texgetimage.c
@@ -432,6 +432,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_L16 &&
+ format == GL_LUMINANCE &&
+ type == GL_UNSIGNED_SHORT) {
+ memCopy = GL_TRUE;
+ }
else if (texImage->TexFormat == MESA_FORMAT_A8 &&
format == GL_ALPHA &&
type == GL_UNSIGNED_BYTE) {