[Mesa-dev] [PATCH] mesa: Emit definition of GLAPIENTRYP in es_generator.py.

Thierry Reding thierry.reding at avionic-design.de
Thu May 19 23:26:18 PDT 2011


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 |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/es_generator.py b/src/mesa/main/es_generator.py
index aa8dab7..a56debe 100644
--- 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.
-- 
1.7.5.1



More information about the mesa-dev mailing list