summaryrefslogtreecommitdiff
path: root/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-master.tar.gz
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py')
-rw-r--r--src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py24
1 files changed, 10 insertions, 14 deletions
diff --git a/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py b/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py
index 5de8cee9..fc167bed 100644
--- a/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py
+++ b/src/VBox/Additions/common/crOpenGL/windows_getprocaddress.py
@@ -37,7 +37,7 @@ static struct name_address functions[] = {
"""
-keys = apiutil.GetAllFunctions(sys.argv[1]+"/APIspec.txt")
+keys = apiutil.GetAllFunctionsAndOmittedAliases(sys.argv[1]+"/APIspec.txt")
for func_name in keys:
if "Chromium" == apiutil.Category(func_name):
continue
@@ -48,9 +48,16 @@ for func_name in keys:
if "GL_chromium" == apiutil.Category(func_name):
pass #continue
+ # alias is the function we're aliasing
+ proc_name = func_name
+ if "omit" in apiutil.ChromiumProps(func_name):
+ alias = apiutil.Alias(func_name)
+ if alias:
+ proc_name = alias
+
wrap = apiutil.GetCategoryWrapper(func_name)
name = "gl" + func_name
- address = "cr_gl" + func_name
+ address = "cr_gl" + proc_name
if wrap:
print '#ifdef CR_%s' % wrap
print '\t{ "%s", (CR_PROC) %s },' % (name, address)
@@ -136,18 +143,7 @@ CR_PROC CR_APIENTRY crGetProcAddress( const char *name )
if (!crStrcmp( name, "wglSwapIntervalEXT" )) return (CR_PROC) wglSwapIntervalEXT;
- /* this is needed for VSG Open Inventor stuff.
- * @todo: make all these auto-generated!!! */
- if (!crStrcmp( name, "glBeginQuery" )) return (CR_PROC) cr_glBeginQueryARB;
- if (!crStrcmp( name, "glDeleteQueries" )) return (CR_PROC) cr_glDeleteQueriesARB;
- if (!crStrcmp( name, "glEndQuery" )) return (CR_PROC) cr_glEndQueryARB;
- if (!crStrcmp( name, "glGenQueries" )) return (CR_PROC) cr_glGenQueriesARB;
- if (!crStrcmp( name, "glGetQueryObjectiv" )) return (CR_PROC) cr_glGetQueryObjectivARB;
- if (!crStrcmp( name, "glGetQueryObjectuiv" )) return (CR_PROC) cr_glGetQueryObjectuivARB;
- if (!crStrcmp( name, "glGetQueryiv" )) return (CR_PROC) cr_glGetQueryivARB;
- if (!crStrcmp( name, "glIsQuery" )) return (CR_PROC) cr_glIsQueryARB;
-
- crWarning("Returning GetProcAddress:NULL for %s", name);
+ crDebug("Returning GetProcAddress:NULL for %s", name);
return NULL;
}