mesa: fix L16F and L32F format properties
authorMarek Olšák <maraeo@gmail.com>
Tue, 15 Feb 2011 23:35:44 +0000 (00:35 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 15 Apr 2011 03:08:00 +0000 (05:08 +0200)
src/mesa/main/formats.c

index e62170b71c18e9ff988ecb5bc07712a4ac0983fb..b45cf03995b91c67c2277725e6b88061f8936b4e 100644 (file)
@@ -677,7 +677,7 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
    {
       MESA_FORMAT_LUMINANCE_FLOAT32,
       "MESA_FORMAT_LUMINANCE_FLOAT32",
-      GL_ALPHA,
+      GL_LUMINANCE,
       GL_FLOAT,
       0, 0, 0, 0,
       32, 0, 0, 0, 0,
@@ -686,7 +686,7 @@ static struct gl_format_info format_info[MESA_FORMAT_COUNT] =
    {
       MESA_FORMAT_LUMINANCE_FLOAT16,
       "MESA_FORMAT_LUMINANCE_FLOAT16",
-      GL_ALPHA,
+      GL_LUMINANCE,
       GL_FLOAT,
       0, 0, 0, 0,
       16, 0, 0, 0, 0,