diff options
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r-- | src/mesa/main/state.c | 43 |
1 files changed, 1 insertions, 42 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c index 517cf68..babc186 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 */ } -/*@}*/ /**********************************************************************/ |