OSDN Git Service

mesa: fix incorrect format info for MESA_FORMAT_SL8
authorBrian Paul <brianp@vmware.com>
Fri, 30 Oct 2009 14:19:50 +0000 (08:19 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 30 Oct 2009 14:21:16 +0000 (08:21 -0600)
Fixes bugs 24798 and 24801.

src/mesa/main/formats.c

index aed3134..e9b33e4 100644 (file)
@@ -387,11 +387,11 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
    {
       MESA_FORMAT_SL8,
       "MESA_FORMAT_SL8",
-      GL_LUMINANCE_ALPHA,
+      GL_LUMINANCE,
       GL_UNSIGNED_NORMALIZED,    
-      0, 0, 0, 8,
+      0, 0, 0, 0,
       8, 0, 0, 0, 0,
-      1, 1, 2
+      1, 1, 1
    },
    {
       MESA_FORMAT_SLA8,