Mesa (intel-2008-q4): mesa: Fix the number of components for GL_UNSIGNED_SHORT_1_5_5_5_REV. ( bug #19390)
Haihao Xiang
haihao at kemper.freedesktop.org
Thu Jan 8 08:52:17 UTC 2009
Module: Mesa
Branch: intel-2008-q4
Commit: a4cbfba6a27cd788b78143456f219b576a33a3c9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4cbfba6a27cd788b78143456f219b576a33a3c9
Author: Xiang, Haihao <haihao.xiang at intel.com>
Date: Tue Jan 6 15:30:34 2009 +0800
mesa: Fix the number of components for GL_UNSIGNED_SHORT_1_5_5_5_REV. (bug #19390)
(cherry picked from commit 241c0bfc985363bb15e6cc0eca859c6ec36d1b35)
---
src/mesa/main/texformat.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/main/texformat.c b/src/mesa/main/texformat.c
index 4442ce3..1dd7bdd 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:
More information about the mesa-commit
mailing list