summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mapi/mapi_abi.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mapi/mapi_abi.py b/src/mapi/mapi_abi.py
index f5ff8d8438d..48050e8097e 100644
--- a/src/mapi/mapi_abi.py
+++ b/src/mapi/mapi_abi.py
@@ -769,6 +769,14 @@ class ES2APIPrinter(GLAPIPrinter):
raise Exception('ES2 API printer requires XML input')
ent.hidden = ent.name not in \
ent.xml_data.entry_points_for_api_version('es2')
+
+ # This is hella ugly. The same-named function in desktop OpenGL is
+ # hidden, but it needs to be exposed by libGLESv2 for OpenGL ES 3.0.
+ # There's no way to express in the XML that a function should be be
+ # hidden in one API but exposed in another.
+ if ent.name == 'GetInternalformativ':
+ ent.hidden = False
+
ent.handcode = False
def _get_c_header(self):