diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2011-05-20 08:26:18 +0200 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2011-05-20 12:59:23 +0100 |
commit | 8e7d4d4e0c74bff105a66c0cd0f427e2b287c9e3 (patch) | |
tree | 8f461feaacbd43fbcd03a1202b50e8386f95aca3 | |
parent | 075d2bfb72916bf59caae98dccdc211b929bb5e8 (diff) |
mesa: Emit definition of GLAPIENTRYP in es_generator.py.
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.
-rw-r--r-- | 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 aa8dab7a74..a56debe017 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. |