Changeset 63942 in vbox for trunk/src/VBox/GuestHost/OpenGL/spu_loader
- Timestamp:
- Sep 22, 2016 11:01:17 AM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 110828
- Location:
- trunk/src/VBox/GuestHost/OpenGL/spu_loader
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/spu_loader/dispatch.py
r63939 r63942 29 29 for (temp = spu->function_table->table ; temp->name != NULL ; temp++) 30 30 { 31 if (!crStrcmp( name, temp->name ))31 if (!crStrcmp(name, temp->name)) 32 32 { 33 33 return temp->fn; 34 34 } 35 35 } 36 return __findFunc( name, spu->superSPU);36 return __findFunc(name, spu->superSPU); 37 37 } 38 38 … … 65 65 for (temp = table ; temp->name != NULL ; temp++) 66 66 { 67 if (!crStrcmp( fname, temp->name ))67 if (!crStrcmp(fname, temp->name)) 68 68 { 69 69 return temp->fn; -
trunk/src/VBox/GuestHost/OpenGL/spu_loader/glloader.py
r63939 r63942 75 75 */ 76 76 static int 77 fillin( SPUNamedFunctionTable *entry, const char *funcName, SPUGenericFunction funcPtr)77 fillin(SPUNamedFunctionTable *entry, const char *funcName, SPUGenericFunction funcPtr) 78 78 { 79 79 if (funcPtr) { 80 entry->name = crStrdup( funcName);80 entry->name = crStrdup(funcName); 81 81 entry->fn = funcPtr; 82 82 return 1; … … 463 463 464 464 for fun in useful_wgl_functions: 465 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( glDll, "%s");' % (fun,fun,fun))465 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(glDll, "%s");' % (fun,fun,fun)) 466 466 467 467 print('#elif defined(DARWIN)') 468 468 print('# ifndef VBOX_WITH_COCOA_QT') 469 469 for fun in useful_agl_functions: 470 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( aglDll, "%s");' % (fun,fun,fun))470 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(aglDll, "%s");' % (fun,fun,fun)) 471 471 print('# endif') 472 472 473 473 for fun in useful_cgl_functions: 474 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( cglDll, "%s");' % (fun, fun,fun))474 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(cglDll, "%s");' % (fun, fun,fun)) 475 475 476 476 for fun in in_gl_functions: 477 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( glDll, "%s");' % (fun, fun,fun))477 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(glDll, "%s");' % (fun, fun,fun)) 478 478 479 479 print('#else') … … 482 482 # XXX merge these loops? 483 483 for fun in useful_glx_functions: 484 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( glDll, "%s");' % (fun, fun, fun))484 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(glDll, "%s");' % (fun, fun, fun)) 485 485 for fun in possibly_useful_glx_functions: 486 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError( glDll, "%s");' % (fun, fun, fun))486 print('\tinterface->%s = (%sFunc_t) crDLLGetNoError(glDll, "%s");' % (fun, fun, fun)) 487 487 print('#endif') 488 488 … … 593 593 594 594 *createContext = (OSMesaContext (*) ( GLenum format, OSMesaContext sharelist )) 595 crDLLGetNoError( osMesaDll, "OSMesaCreateContext");595 crDLLGetNoError(osMesaDll, "OSMesaCreateContext"); 596 596 597 597 *makeCurrent = (GLboolean (*) ( OSMesaContext ctx, GLubyte *buffer, 598 598 GLenum type, GLsizei width, GLsizei height )) 599 crDLLGetNoError( osMesaDll, "OSMesaMakeCurrent");599 crDLLGetNoError(osMesaDll, "OSMesaMakeCurrent"); 600 600 601 601 *destroyContext = (void (*) ( OSMesaContext ctx)) 602 crDLLGetNoError( osMesaDll, "OSMesaDestroyContext");602 crDLLGetNoError(osMesaDll, "OSMesaDestroyContext"); 603 603 604 604 return 1; -
trunk/src/VBox/GuestHost/OpenGL/spu_loader/spuchange.py
r63939 r63942 18 18 #include "cr_error.h" 19 19 20 void crSPUChangeInterface( SPUDispatchTable *table, void *orig_func, void *new_func)20 void crSPUChangeInterface(SPUDispatchTable *table, void *orig_func, void *new_func) 21 21 { 22 22 struct _copy_list_node *temp; … … 39 39 print('\t\tfor (temp = table->copyList ; temp ; temp = temp->next)') 40 40 print('\t\t{') 41 print('\t\t\tcrSPUChangeInterface( temp->copy, orig_func, new_func);')41 print('\t\t\tcrSPUChangeInterface(temp->copy, orig_func, new_func);') 42 42 print('\t\t}') 43 43 print('\t}') … … 46 46 if (table->copy_of != NULL) 47 47 { 48 crSPUChangeInterface( table->copy_of, orig_func, new_func);48 crSPUChangeInterface(table->copy_of, orig_func, new_func); 49 49 } 50 for (temp = table->copyList ; temp; temp = temp->next)50 for (temp = table->copyList; temp; temp = temp->next) 51 51 { 52 crSPUChangeInterface( temp->copy, orig_func, new_func);52 crSPUChangeInterface(temp->copy, orig_func, new_func); 53 53 } 54 54 table->mark = 0;
Note:
See TracChangeset
for help on using the changeset viewer.