From 65440c051ec61abb3a03c4ed790d707dba84d6b9 Mon Sep 17 00:00:00 2001 From: Kyle Brenneman Date: Thu, 7 Apr 2016 12:55:25 -0600 Subject: GLESv1: Statically export glPointSizePointerOES. Add GL_OES_point_size_array to the set of features and extensions that are exported from libGLESv1_CM.so. According to the OpenGL ES 1.1 spec, all required extensions are supposed to be statically exported from the library. GL_OES_point_size_array is the only required extension that defines any functions. --- src/generate/genCommon.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/generate/genCommon.py b/src/generate/genCommon.py index 495cbf8..5781275 100644 --- a/src/generate/genCommon.py +++ b/src/generate/genCommon.py @@ -42,7 +42,7 @@ _LIBRARY_FEATURE_NAMES = { "GL_VERSION_3_2", "GL_VERSION_3_3", "GL_VERSION_4_0", "GL_VERSION_4_1", "GL_VERSION_4_2", "GL_VERSION_4_3", "GL_VERSION_4_4", "GL_VERSION_4_5", )), - "glesv1" : frozenset(("GL_VERSION_ES_CM_1_0",)), + "glesv1" : frozenset(("GL_VERSION_ES_CM_1_0", "GL_OES_point_size_array")), "glesv2" : frozenset(("GL_ES_VERSION_2_0", "GL_ES_VERSION_3_0", "GL_ES_VERSION_3_1" "GL_ES_VERSION_3_2", )), @@ -90,10 +90,16 @@ def getExportNamesFromRoots(target, roots): names = set() for root in roots: + features = [] for featElem in root.findall("feature"): if (featElem.get("name") in featureNames): - for commandElem in featElem.findall("require/command"): - names.add(commandElem.get("name")) + features.append(featElem) + for featElem in root.findall("extensions/extension"): + if (featElem.get("name") in featureNames): + features.append(featElem) + for featElem in features: + for commandElem in featElem.findall("require/command"): + names.add(commandElem.get("name")) return names class FunctionArg(collections.namedtuple("FunctionArg", "type name")): -- cgit v1.2.3