aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/glx/glapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'xorg-server/glx/glapi.c')
-rw-r--r--xorg-server/glx/glapi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xorg-server/glx/glapi.c b/xorg-server/glx/glapi.c
index 5bb2e90a0..94ec718da 100644
--- a/xorg-server/glx/glapi.c
+++ b/xorg-server/glx/glapi.c
@@ -75,11 +75,12 @@
#define str_dup strdup
#include "glapi.h"
-#include "glapioffsets.h"
#include "GL/gl.h"
#include "GL/glext.h"
#include "glapitable.h"
+#define FIRST_DYNAMIC_OFFSET (sizeof(struct _glapi_table) / sizeof(void *))
+
/***** BEGIN NO-OP DISPATCH *****/
static GLboolean WarnFlag = GL_FALSE;
@@ -726,7 +727,7 @@ PUBLIC int
_glapi_add_dispatch( const char * const * function_names,
const char * parameter_signature )
{
- static int next_dynamic_offset = _gloffset_FIRST_DYNAMIC;
+ static int next_dynamic_offset = FIRST_DYNAMIC_OFFSET;
const char * const real_sig = (parameter_signature != NULL)
? parameter_signature : "";
struct _glapi_function * entry[8];