projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
913d7c3
)
mesa: add missing cases for signed 16-bit formats
author
Brian Paul
<brianp@vmware.com>
Mon, 10 May 2010 00:30:03 +0000
(18:30 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 10 May 2010 03:19:41 +0000
(21:19 -0600)
src/mesa/main/formats.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/formats.c
b/src/mesa/main/formats.c
index b9796e4a4236bc26ac44d6bdd03379dcc631d49d..7f57fc05d59926e268c2a33237fc62cb181c58af 100644
(file)
--- 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;