summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/es_generator.py
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-10-26 04:25:45 +0800
committerChia-I Wu <[email protected]>2010-10-27 11:11:11 +0800
commitb762db62c2972506fa78a5ed72f796113fc9b0d1 (patch)
tree9921c770f488c82c1368eb074659e33493459460 /src/mesa/main/es_generator.py
parentaefd4f76ea52d0480d63e053d2e2c768dd40a470 (diff)
mesa: Remove unnecessary glapitable.h includes.
With 07b85457d95bcc70588584e9380c51cd63aa3a2b, glapitable.h is included by core mesa only to know the size of _glapi_table. It is not necessary as the same info is given by _gloffset_COUNT. This change makes _glapi_table opaque to core mesa. All operations on it are supposed to go through one of the SET/GET/CALL macros.
Diffstat (limited to 'src/mesa/main/es_generator.py')
-rw-r--r--src/mesa/main/es_generator.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mesa/main/es_generator.py b/src/mesa/main/es_generator.py
index 4e5d6e5577d..8f28da16df8 100644
--- a/src/mesa/main/es_generator.py
+++ b/src/mesa/main/es_generator.py
@@ -219,7 +219,6 @@ 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/main/glapidispatch.h"
#if FEATURE_remap_table
@@ -248,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);
# Finally we get to the all-important functions
print """/*************************************************************
@@ -716,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;