summaryrefslogtreecommitdiff
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2004-11-27 05:05:32 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2004-11-27 05:05:32 +0000
commit21f6978c532eae50d9daefd481b5ab936225fd27 (patch)
treedf8cd2c22fb8d5e94c61126e4892eda37782de64 /src/mesa/main/state.c
parent13435525c4899265a19662ce78c158ae0698abb6 (diff)
clean up code related to dispatch table initialization
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c43
1 files changed, 1 insertions, 42 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 517cf6819c..babc1868e7 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -91,43 +91,6 @@
-/**********************************************************************/
-/** \name Dispatch table setup */
-/*@{*/
-
-/**
- * Generic no-op dispatch function.
- *
- * Used in replacement of the functions which are not part of Mesa subset.
- *
- * Displays a message.
- */
-static int
-generic_noop(void)
-{
- _mesa_problem(NULL, "User called no-op dispatch function (an unsupported extension function?)");
- return 0;
-}
-
-
-/**
- * Set all pointers in the given dispatch table to point to a
- * generic no-op function - generic_noop().
- *
- * \param table dispatch table.
- * \param tableSize dispatch table size.
- */
-void
-_mesa_init_no_op_table(struct _glapi_table *table, GLuint tableSize)
-{
- GLuint i;
- _glapi_proc *dispatch = (_glapi_proc *) table;
- for (i = 0; i < tableSize; i++) {
- dispatch[i] = (_glapi_proc) generic_noop;
- }
-}
-
-
/**
* Initialize a dispatch table with pointers to Mesa's immediate-mode
* commands.
@@ -139,11 +102,8 @@ _mesa_init_no_op_table(struct _glapi_table *table, GLuint tableSize)
* \param tableSize dispatch table size.
*/
void
-_mesa_init_exec_table(struct _glapi_table *exec, GLuint tableSize)
+_mesa_init_exec_table(struct _glapi_table *exec)
{
- /* first initialize all dispatch slots to no-op */
- _mesa_init_no_op_table(exec, tableSize);
-
#if _HAVE_FULL_GL
_mesa_loopback_init_api_table( exec );
#endif
@@ -787,7 +747,6 @@ _mesa_init_exec_table(struct _glapi_table *exec, GLuint tableSize)
#endif /* FEATURE_ARB_shader_objects */
}
-/*@}*/
/**********************************************************************/