mesa: Fix the number of components for GL_UNSIGNED_SHORT_1_5_5_5_REV. (bug #19390)

This commit is contained in:
Xiang, Haihao 2009-01-06 15:30:34 +08:00
parent 7627c7f5df
commit 241c0bfc98
1 changed files with 1 additions and 1 deletions

View File

@ -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: