summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 15:08:39 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 15:54:06 -0600
commit811a183a274048158af5f5a05c4d3106dcffd08b (patch)
treedd3384f43aaca741b84bfbe18e846a8d09f77ba9
parent547e487df2a25dc92dc303cb59ed460e2d95a913 (diff)
mesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity check
-rw-r--r--src/mesa/glapi/glapi_getproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/glapi/glapi_getproc.c b/src/mesa/glapi/glapi_getproc.c
index 5e0af26a01..3634444c85 100644
--- a/src/mesa/glapi/glapi_getproc.c
+++ b/src/mesa/glapi/glapi_getproc.c
@@ -411,7 +411,7 @@ add_function_name( const char * funcName )
* \returns
* The offset in the dispatch table of the named function. A pointer to the
* driver's implementation of the named function should be stored at
- * \c dispatch_table[\c offset].
+ * \c dispatch_table[\c offset]. Return -1 if error/problem.
*
* \sa glXGetProcAddress
*
@@ -460,7 +460,7 @@ _glapi_add_dispatch( const char * const * function_names,
*/
if (!function_names[i] || function_names[i][0] != 'g' || function_names[i][1] != 'l')
- return GL_FALSE;
+ return -1;
/* Determine if the named function already exists. If the function does
* exist, it must have the same parameter signature as the function