summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/gl_offsets.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/glapi/gl_offsets.py')
-rw-r--r--src/mesa/glapi/gl_offsets.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/glapi/gl_offsets.py b/src/mesa/glapi/gl_offsets.py
index dfd7fda9d77..6f6be2069c2 100644
--- a/src/mesa/glapi/gl_offsets.py
+++ b/src/mesa/glapi/gl_offsets.py
@@ -41,8 +41,14 @@ class PrintGlOffsets(gl_XML.gl_print_base):
return
def printBody(self, api):
+ last_static = 0
for f in api.functionIterateByOffset():
print '#define _gloffset_%s %d' % (f.name, f.offset)
+ if f.offset > last_static:
+ last_static = f.offset
+
+ print '#define _gloffset_FIRST_DYNAMIC %d' % (last_static + 1)
+ return
def show_usage():