Merge commit 'origin/master' into gallium-0.2
[mesa.git] / src / mesa / main / texformat.c
index db3525666a269e3e63a0f20390780e74c7656dd1..50e8d7a3b8716d8370a815c676479f452717602b 100644 (file)
@@ -1685,7 +1685,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: