[Mesa-dev] [PATCH 16/16] mesa: remove SGIS_texture_lod extension enable flag
Marek Olšák
maraeo at gmail.com
Sun Oct 28 07:25:03 PDT 2012
---
src/mesa/main/extensions.c | 20 +-------------------
src/mesa/main/mtypes.h | 1 -
2 files changed, 1 insertion(+), 20 deletions(-)
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index ad7b91a..56d5f90 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -316,7 +316,7 @@ static const struct extension extension_table[] = {
{ "GL_SGIS_generate_mipmap", o(dummy_true), GLL, 1997 },
{ "GL_SGIS_texture_border_clamp", o(ARB_texture_border_clamp), GLL, 1997 },
{ "GL_SGIS_texture_edge_clamp", o(dummy_true), GLL, 1997 },
- { "GL_SGIS_texture_lod", o(SGIS_texture_lod), GLL, 1997 },
+ { "GL_SGIS_texture_lod", o(dummy_true), GLL, 1997 },
{ "GL_SUN_multi_draw_arrays", o(dummy_true), GLL, 1999 },
{ 0, 0, 0, 0 },
@@ -349,21 +349,6 @@ name_to_offset(const char* name)
/**
- * \brief Extensions enabled by default.
- *
- * These extensions are enabled by _mesa_init_extensions().
- *
- * XXX: Should these defaults also apply to GLES?
- */
-static const size_t default_extensions[] = {
- /* Vendor Extensions */
- o(SGIS_texture_lod),
-
- 0,
-};
-
-
-/**
* Enable all extensions suitable for a software-only renderer.
* This is a convenience function used by the XMesa, OSMesa, GGI drivers, etc.
*/
@@ -694,7 +679,6 @@ _mesa_init_extensions( struct gl_context *ctx )
GLboolean *base = (GLboolean *) &ctx->Extensions;
GLboolean *sentinel = base + o(extension_sentinel);
GLboolean *i;
- const size_t *j;
/* First, turn all extensions off. */
for (i = base; i != sentinel; ++i)
@@ -702,8 +686,6 @@ _mesa_init_extensions( struct gl_context *ctx )
/* Then, selectively turn default extensions on. */
ctx->Extensions.dummy_true = GL_TRUE;
- for (j = default_extensions; *j != 0; ++j)
- base[*j] = GL_TRUE;
}
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 5500b05..5756a48 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -3048,7 +3048,6 @@ struct gl_extensions
GLboolean NV_texture_barrier;
GLboolean NV_texture_env_combine4;
GLboolean NV_texture_rectangle;
- GLboolean SGIS_texture_lod;
GLboolean TDFX_texture_compression_FXT1;
GLboolean S3_s3tc;
GLboolean OES_EGL_image;
--
1.7.9.5
More information about the mesa-dev
mailing list