VirtualBox

Ignore:
Timestamp:
Mar 9, 2011 3:05:32 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70452
Message:

crOpenGL: workaround for recent nvidia drivers, disabled yet as need more testing

Location:
trunk/src/VBox/GuestHost/OpenGL/spu_loader
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/loader.def

    r15532 r36231  
    1919crUnloadOpenGL
    2020crChooseVisual
     21crSPUChangeDispatch
  • trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuchange.py

    r15532 r36231  
    5454"""
    5555print '}'
     56
     57print """
     58void crSPUChangeDispatch(SPUDispatchTable *dispatch, const SPUNamedFunctionTable *newtable)
     59{
     60    SPUGenericFunction func;
     61"""
     62keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt")
     63for func_name in keys:
     64    print '\tfunc = crSPUFindFunction(newtable, "%s");' % func_name
     65    print '\tif (func && ((SPUGenericFunction)dispatch->%s!=func))' % func_name
     66    print '\t{'
     67    print '\t\tcrDebug("%%s changed from %%p to %%p", "gl%s", dispatch->%s, func);' % (func_name, func_name)
     68    print '\t\tcrSPUChangeInterface(dispatch, dispatch->%s, func);' % func_name
     69    print '\t}\n'
     70print """
     71}
     72"""
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette