summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/extensions.c
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-06-27 18:20:24 -0700
committerKenneth Graunke <[email protected]>2013-06-28 13:35:21 -0700
commit34e8905077b7a930457098ac0e0a5ea251e5944c (patch)
treeec3c350b1284e6643fdb3ef7af1dd06d060197b2 /src/mesa/main/extensions.c
parente14b486113de60c53a933c3ce5605863b0a84108 (diff)
mesa: Remove _mesa_{enable, disable}_extension and _mesa_extension_is_enabled
They're not used anywhere. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/extensions.c')
-rw-r--r--src/mesa/main/extensions.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index a39c3e15e5d..8f96a77779a 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -494,51 +494,6 @@ set_extension( struct gl_context *ctx, const char *name, GLboolean state )
}
}
-
-/**
- * Enable the named extension.
- * Typically called by drivers.
- */
-void
-_mesa_enable_extension( struct gl_context *ctx, const char *name )
-{
- if (!set_extension(ctx, name, GL_TRUE))
- _mesa_problem(ctx, "Trying to enable unknown extension: %s", name);
-}
-
-
-/**
- * Disable the named extension.
- * XXX is this really needed???
- */
-void
-_mesa_disable_extension( struct gl_context *ctx, const char *name )
-{
- if (!set_extension(ctx, name, GL_FALSE))
- _mesa_problem(ctx, "Trying to disable unknown extension: %s", name);
-}
-
-
-/**
- * Test if the named extension is enabled in this context.
- */
-GLboolean
-_mesa_extension_is_enabled( struct gl_context *ctx, const char *name )
-{
- size_t offset;
- GLboolean *base;
-
- if (name == 0)
- return GL_FALSE;
-
- offset = name_to_offset(name);
- if (offset == 0)
- return GL_FALSE;
- base = (GLboolean *) &ctx->Extensions;
- return base[offset];
-}
-
-
/**
* \brief Apply the \c MESA_EXTENSION_OVERRIDE environment variable.
*