[Mesa-dev] [PATCH 04/17] mesa: remove unused gl_constants::MaxColorTableSize

Marek Olšák maraeo at gmail.com
Wed May 1 20:42:55 PDT 2013


---
 src/mesa/main/config.h  |    3 ---
 src/mesa/main/context.c |    1 -
 src/mesa/main/mtypes.h  |    2 --
 3 files changed, 6 deletions(-)

diff --git a/src/mesa/main/config.h b/src/mesa/main/config.h
index c48ffdc..ea87b75 100644
--- a/src/mesa/main/config.h
+++ b/src/mesa/main/config.h
@@ -91,9 +91,6 @@
 /** Line width granularity */
 #define LINE_WIDTH_GRANULARITY 0.1
 
-/** Max texture palette / color table size */
-#define MAX_COLOR_TABLE_SIZE 256
-
 /** Max memory to allow for a single texture image (in megabytes) */
 #define MAX_TEXTURE_MBYTES 1024
 
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 3041ec2..2006a44 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -571,7 +571,6 @@ _mesa_init_constants(struct gl_context *ctx)
    ctx->Const.MinLineWidthAA = MIN_LINE_WIDTH;
    ctx->Const.MaxLineWidthAA = MAX_LINE_WIDTH;
    ctx->Const.LineWidthGranularity = (GLfloat) LINE_WIDTH_GRANULARITY;
-   ctx->Const.MaxColorTableSize = MAX_COLOR_TABLE_SIZE;
    ctx->Const.MaxClipPlanes = 6;
    ctx->Const.MaxLights = MAX_LIGHTS;
    ctx->Const.MaxShininess = 128.0;
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index c1aa016..5ad4d3a 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -2767,8 +2767,6 @@ struct gl_constants
    GLfloat MinLineWidthAA, MaxLineWidthAA;   /**< antialiased */
    GLfloat LineWidthGranularity;
 
-   GLuint MaxColorTableSize;
-
    GLuint MaxClipPlanes;
    GLuint MaxLights;
    GLfloat MaxShininess;                     /**< GL_NV_light_max_exponent */
-- 
1.7.10.4



More information about the mesa-dev mailing list