summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Brenneman <kbrenneman@nvidia.com>2016-04-07 12:55:25 -0600
committerKyle Brenneman <kbrenneman@nvidia.com>2016-04-07 13:08:34 -0600
commit65440c051ec61abb3a03c4ed790d707dba84d6b9 (patch)
treeef7097602972af0cbf5b33806a26a49a5addd823
parent5a69af6f77dd68fed4d54137c155676478dcccc3 (diff)
GLESv1: Statically export glPointSizePointerOES.HEADmaster
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.
-rw-r--r--src/generate/genCommon.py12
1 files 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")):