summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-08-19 21:20:01 +0800
committerChia-I Wu <[email protected]>2010-08-20 19:26:18 +0800
commitae2ace64f49a39e72eff393b8569653647b8b94f (patch)
tree4dd77412a18eb664af830592d6afd5750aa756f3 /src/mesa/main
parent8043bf555e14cf20826753d59d66d0cef7a5e5a0 (diff)
mesa: Decorate functions with GL_APIENTRY in es_generator.py.
Note that GLES headers use GL_APIENTRY, not GLAPIENTRY.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/es_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/es_generator.py b/src/mesa/main/es_generator.py
index 9a8f5a6f5e0..c1fe2401c4a 100644
--- a/src/mesa/main/es_generator.py
+++ b/src/mesa/main/es_generator.py
@@ -609,7 +609,7 @@ for funcName in keys:
# is to create them ourselves.
if funcName in allSpecials:
print "/* this function is special and is defined elsewhere */"
- print "extern %s GLAPIENTRY %s(%s);" % (returnType, passthroughFuncName, passthroughDeclarationString)
+ print "extern %s GL_APIENTRY %s(%s);" % (returnType, passthroughFuncName, passthroughDeclarationString)
# A function may be a core function (i.e. it exists in
# the core specification), a core addition (extension
@@ -662,7 +662,7 @@ for funcName in keys:
print
continue
- print "static %s %s(%s)" % (returnType, fullFuncName, declarationString)
+ print "static %s GL_APIENTRY %s(%s)" % (returnType, fullFuncName, declarationString)
print "{"
# Start printing our code pieces. Start with any local