summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 15:06:49 -0600
committerBrian Paul <brian.paul@tungstengraphics.com>2008-07-09 15:06:49 -0600
commit27425708f51b0534a4f77f3779f401c8f05903ed (patch)
treee13aaf923cd8e7e3e3f840111c51763fd44af2ba
parentfc07b6cda0b421850471338330d2d11f44f0f12d (diff)
downloadmesa-27425708f51b0534a4f77f3779f401c8f05903ed.tar.gz
mesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity check
-rw-r--r--src/mesa/glapi/glapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 47c57822732..0aca9f4a5c4 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -724,7 +724,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
*
@@ -773,7 +773,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