From 8e7d4d4e0c74bff105a66c0cd0f427e2b287c9e3 Mon Sep 17 00:00:00 2001 From: Thierry Reding Date: Fri, 20 May 2011 08:26:18 +0200 Subject: [PATCH] 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. --- src/mesa/main/es_generator.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mesa/main/es_generator.py b/src/mesa/main/es_generator.py index aa8dab7a743..a56debe0170 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. -- 2.30.2