summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/es_generator.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/es_generator.py')
-rw-r--r--src/mesa/main/es_generator.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/mesa/main/es_generator.py b/src/mesa/main/es_generator.py
index ecb34bb5cdf..8f28da16df8 100644
--- a/src/mesa/main/es_generator.py
+++ b/src/mesa/main/es_generator.py
@@ -219,9 +219,7 @@ extern void _mesa_error(void *ctx, GLenum error, const char *fmtString, ... );
#ifndef GLAPIENTRY
#define GLAPIENTRY GL_APIENTRY
#endif
-#include "%sapi/glapi/glapitable.h"
-#include "%sapi/glapi/glapioffsets.h"
-#include "%sapi/glapi/glapidispatch.h"
+#include "%sapi/main/glapidispatch.h"
#if FEATURE_remap_table
@@ -249,7 +247,7 @@ _mesa_map_static_functions_%s(void)
#endif
typedef void (*_glapi_proc)(void); /* generic function pointer */
-""" % (shortname, shortname, shortname, shortname, shortname, shortname);
+""" % (shortname, shortname, shortname, shortname);
# Finally we get to the all-important functions
print """/*************************************************************
@@ -717,7 +715,7 @@ struct _glapi_table *
_mesa_create_exec_table_%s(void)
{
struct _glapi_table *exec;
- exec = _mesa_alloc_dispatch_table(sizeof *exec);
+ exec = _mesa_alloc_dispatch_table(_gloffset_COUNT);
if (exec == NULL)
return NULL;