Changeset 36231 in vbox for trunk/src/VBox/GuestHost/OpenGL
- Timestamp:
- Mar 9, 2011 3:05:32 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70452
- Location:
- trunk/src/VBox/GuestHost/OpenGL
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/include/cr_spu.h
r22509 r36231 455 455 DECLEXPORT(void) crUnloadOpenGL( void ); 456 456 DECLEXPORT(int) crLoadOpenGLExtensions( const crOpenGLInterface *crInterface, SPUNamedFunctionTable table[] ); 457 DECLEXPORT(void) crSPUChangeDispatch(SPUDispatchTable *dispatch, const SPUNamedFunctionTable *newtable); 457 458 458 459 #if defined(GLX) -
trunk/src/VBox/GuestHost/OpenGL/spu_loader/loader.def
r15532 r36231 19 19 crUnloadOpenGL 20 20 crChooseVisual 21 crSPUChangeDispatch -
trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuchange.py
r15532 r36231 54 54 """ 55 55 print '}' 56 57 print """ 58 void crSPUChangeDispatch(SPUDispatchTable *dispatch, const SPUNamedFunctionTable *newtable) 59 { 60 SPUGenericFunction func; 61 """ 62 keys = apiutil.GetDispatchedFunctions(sys.argv[1]+"/APIspec.txt") 63 for 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' 70 print """ 71 } 72 """
Note:
See TracChangeset
for help on using the changeset viewer.