diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2009-09-15 14:16:22 +0800 |
---|---|---|
committer | Chia-I Wu <olvaffe@gmail.com> | 2009-09-15 14:16:22 +0800 |
commit | e2ba90a9cc762cf00a168f0a59d31e7dc52fc42e (patch) | |
tree | fe3206d7602ad935296884742980f3c4d30bd867 /src/mesa/glapi/extension_helper.py | |
parent | 11a4292d4eb515813b82b8d688a318adef66b3e6 (diff) | |
parent | b4b8800315637d9218a81c76f09df7d601710d29 (diff) |
Merge commit 'eee/mesa-es' into android
Diffstat (limited to 'src/mesa/glapi/extension_helper.py')
-rw-r--r-- | src/mesa/glapi/extension_helper.py | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mesa/glapi/extension_helper.py b/src/mesa/glapi/extension_helper.py index 64f64a2fd8..3b6e2ce404 100644 --- a/src/mesa/glapi/extension_helper.py +++ b/src/mesa/glapi/extension_helper.py @@ -165,12 +165,14 @@ class PrintGlExtensionGlue(gl_XML.gl_print_base): print '# define NULL 0' print '#endif' print '' + print '#if defined(IN_DRI_DRIVER)' + print '' for f in api.functionIterateAll(): condition = condition_for_function(f, abi, 0) if len(condition): print '#if %s' % (string.join(condition, " || ")) - print 'static const char %s_names[] = ' % (f.name) + print 'static const char %s_names[] =' % (f.name) parameter_signature = '' for p in f.parameterIterator(): @@ -232,6 +234,15 @@ class PrintGlExtensionGlue(gl_XML.gl_print_base): print '#endif' print '' + print '#else /* IN_DRI_DRIVER */' + print '' + for category in keys: + print '#if defined(need_%s)' % (category) + print '#define %s_functions NULL' % (category) + print '#endif' + print '' + print '#endif /* IN_DRI_DRIVER */' + print '' return |