mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
mesa: Decorate functions with GL_APIENTRY in es_generator.py.
Note that GLES headers use GL_APIENTRY, not GLAPIENTRY.
This commit is contained in:
parent
8043bf555e
commit
ae2ace64f4
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue