summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-05-09 18:30:03 -0600
committerBrian Paul <[email protected]>2010-05-09 21:19:41 -0600
commit880e04ba74603eda3480006f21bc8c2b24ac2f8c (patch)
tree68470e81aa8479c9f29e11a4c2e9552ca7a8ca1d /src/mesa/main
parent913d7c388d1167a6cb3ccb52eb50f4c4f183b033 (diff)
mesa: add missing cases for signed 16-bit formats
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/formats.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c
index b9796e4a423..7f57fc05d59 100644
--- a/src/mesa/main/formats.c
+++ b/src/mesa/main/formats.c
@@ -1125,6 +1125,19 @@ _mesa_format_to_type_and_comps(gl_format format,
*datatype = GL_BYTE;
*comps = 4;
return;
+
+ case MESA_FORMAT_SIGNED_R_16:
+ *datatype = GL_SHORT;
+ *comps = 1;
+ return;
+ case MESA_FORMAT_SIGNED_RG_16:
+ *datatype = GL_SHORT;
+ *comps = 2;
+ return;
+ case MESA_FORMAT_SIGNED_RGB_16:
+ *datatype = GL_SHORT;
+ *comps = 3;
+ return;
case MESA_FORMAT_SIGNED_RGBA_16:
*datatype = GL_SHORT;
*comps = 4;