Changeset 78375 in vbox for trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c
- Timestamp:
- May 3, 2019 9:51:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c
r69392 r78375 8 8 #include "cr_spu.h" 9 9 10 SPUDispatchTable diff_api; 11 12 void crStateFlushFunc( CRStateFlushFunc func ) 10 void crStateFlushFunc(PCRStateTracker pState, CRStateFlushFunc func ) 13 11 { 14 CRContext *g = GetCurrentContext( );12 CRContext *g = GetCurrentContext(pState); 15 13 16 14 g->flush_func = func; 17 15 } 18 16 19 void crStateFlushArg( void *arg )17 void crStateFlushArg(PCRStateTracker pState, void *arg ) 20 18 { 21 CRContext *g = GetCurrentContext( );19 CRContext *g = GetCurrentContext(pState); 22 20 23 21 g->flush_arg = arg; 24 22 } 25 23 26 void crStateDiffAPI( SPUDispatchTable *api )24 void crStateDiffAPI(PCRStateTracker pState, SPUDispatchTable *api ) 27 25 { 28 if (! diff_api.AlphaFunc)26 if (!pState->diff_api.AlphaFunc) 29 27 { 30 28 /* Called when starting up Chromium */ 31 crSPUInitDispatchTable( & (diff_api));29 crSPUInitDispatchTable( &pState->diff_api ); 32 30 } 33 crSPUCopyDispatchTable( & (diff_api), api );31 crSPUCopyDispatchTable( &pState->diff_api, api ); 34 32 }
Note:
See TracChangeset
for help on using the changeset viewer.