Browse Source

mesa: return -1, not GL_FALSE if _glapi_add_dispatch() fails name sanity check

tags/mesa_20090313
Brian Paul 17 years ago
parent
commit
811a183a27
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/mesa/glapi/glapi_getproc.c

+ 2
- 2
src/mesa/glapi/glapi_getproc.c View File

@@ -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

Loading…
Cancel
Save