summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2009-01-06 15:30:34 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2009-01-06 15:34:51 +0800
commit241c0bfc985363bb15e6cc0eca859c6ec36d1b35 (patch)
tree9a1a7b02908378dcd8619297fcfff1711330883d /src/mesa
parent7627c7f5dfa3b1bc7be9d1670668a81a70d9f64a (diff)
mesa: Fix the number of components for GL_UNSIGNED_SHORT_1_5_5_5_REV. (bug #19390)
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texformat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index 4442ce39a44..1dd7bdd9cef 100644
--- a/src/mesa/main/texformat.c
+++ b/src/mesa/main/texformat.c
@@ -1641,7 +1641,7 @@ _mesa_format_to_type_and_comps(const struct gl_texture_format *format,
case MESA_FORMAT_ARGB1555:
case MESA_FORMAT_ARGB1555_REV:
*datatype = GL_UNSIGNED_SHORT_1_5_5_5_REV;
- *comps = 3;
+ *comps = 4;
return;
case MESA_FORMAT_AL88: