projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
075d2bf
)
mesa: Emit definition of GLAPIENTRYP in es_generator.py.
author
Thierry Reding
<thierry.reding@avionic-design.de>
Fri, 20 May 2011 06:26:18 +0000
(08:26 +0200)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 20 May 2011 11:59:23 +0000
(12:59 +0100)
GLES uses GL_APIENTRYP instead of GLAPIENTRYP, which breaks with the
latest API table generation code. This fixes the issue by emitting a
definition for GL_APIENTRYP when generating the GLES files.
src/mesa/main/es_generator.py
patch
|
blob
|
history
diff --git
a/src/mesa/main/es_generator.py
b/src/mesa/main/es_generator.py
index
aa8dab7
..
a56debe
100644
(file)
--- a/
src/mesa/main/es_generator.py
+++ b/
src/mesa/main/es_generator.py
@@
-195,6
+195,10
@@
print """
#include "main/api_exec.h"
#if FEATURE_%s
+
+#ifndef GLAPIENTRYP
+#define GLAPIENTRYP GL_APIENTRYP
+#endif
""" % (versionHeader, versionExtHeader, shortname.upper())
# Everyone needs these types.