Mesa (master): mesa: remove unused gl_pixelmap::Map8[] array

Brian Paul brianp at kemper.freedesktop.org
Fri Feb 10 15:08:28 UTC 2012


Module: Mesa
Branch: master
Commit: 3e59fb570ae82d988a90d341d1ffdd5c3ece1aa4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3e59fb570ae82d988a90d341d1ffdd5c3ece1aa4

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Feb  9 22:15:45 2012 -0700

mesa: remove unused gl_pixelmap::Map8[] array

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

 src/mesa/main/mtypes.h |    1 -
 src/mesa/main/pixel.c  |    2 --
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 521bb39..6066e6f 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1045,7 +1045,6 @@ struct gl_pixelmap
 {
    GLint Size;
    GLfloat Map[MAX_PIXEL_MAP_TABLE];
-   GLubyte Map8[MAX_PIXEL_MAP_TABLE];  /**< converted to 8-bit color */
 };
 
 
diff --git a/src/mesa/main/pixel.c b/src/mesa/main/pixel.c
index e73c5a4..450c936 100644
--- a/src/mesa/main/pixel.c
+++ b/src/mesa/main/pixel.c
@@ -137,7 +137,6 @@ store_pixelmap(struct gl_context *ctx, GLenum map, GLsizei mapsize,
       for (i = 0; i < mapsize; i++) {
          GLfloat val = CLAMP(values[i], 0.0F, 1.0F);
          pm->Map[i] = val;
-         pm->Map8[i] = (GLint) (val * 255.0F);
       }
    }
 }
@@ -683,7 +682,6 @@ init_pixelmap(struct gl_pixelmap *map)
 {
    map->Size = 1;
    map->Map[0] = 0.0;
-   map->Map8[0] = 0;
 }
 
 




More information about the mesa-commit mailing list