Small changes to GLDispacher class.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13835 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin 2005-07-27 09:37:05 +00:00
parent e5bc59e8f2
commit f73ec094df
2 changed files with 7 additions and 7 deletions

View File

@ -91,14 +91,14 @@ status_t
GLDispatcher::CheckTable(const struct _glapi_table *table)
{
_glapi_check_table(table ? table : _glapi_get_dispatch());
return B_ERROR;
return B_OK;
}
status_t
GLDispatcher::SetTable(struct _glapi_table *table)
{
_glapi_set_dispatch(table);
return B_ERROR;
return B_OK;
}

View File

@ -30,9 +30,9 @@ class GLDispatcher
uint32 TableSize();
const _glapi_proc operator[](const char *function_name);
const char * operator[](uint32 offset);
const char * FunctionName(uint32 offset);
uint32 FunctionOffset(const char *function_name);
uint32 OffsetOf(const char *function_name);
};
// Inlines methods
@ -72,15 +72,15 @@ inline const _glapi_proc GLDispatcher::operator[](const char *function_name)
}
inline const char * GLDispatcher::FunctionName(uint32 offset)
inline const char * GLDispatcher::operator[](uint32 offset)
{
return _glapi_get_proc_name((GLuint) offset);
}
inline uint32 GLDispatcher::FunctionOffset(const char *function_name)
inline uint32 GLDispatcher::OffsetOf(const char *function_name)
{
return (uint32) _glapi_get_proc_offset;
return (uint32) _glapi_get_proc_offset(function_name);
}