diff options
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c')
-rw-r--r-- | src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c b/src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c new file mode 100644 index 00000000..052080e0 --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c @@ -0,0 +1,34 @@ +/* Copyright (c) 2001, Stanford University + * All rights reserved + * + * See the file LICENSE.txt for information on redistributing this software. + */ + +#include "state.h" +#include "cr_spu.h" + +SPUDispatchTable diff_api; + +void crStateFlushFunc( CRStateFlushFunc func ) +{ + CRContext *g = GetCurrentContext(); + + g->flush_func = func; +} + +void crStateFlushArg( void *arg ) +{ + CRContext *g = GetCurrentContext(); + + g->flush_arg = arg; +} + +void crStateDiffAPI( SPUDispatchTable *api ) +{ + if (!diff_api.AlphaFunc) + { + /* Called when starting up Chromium */ + crSPUInitDispatchTable( &(diff_api) ); + } + crSPUCopyDispatchTable( &(diff_api), api ); +} |