Last change
on this file since 69392 was 69392, checked in by vboxsync, 7 years ago |
GuestHost/OpenGL: scm updates
|
-
Property svn:eol-style
set to
native
-
Property svn:keywords
set to
Id Revision
|
File size:
639 bytes
|
Line | |
---|
1 | /* Copyright (c) 2001, Stanford University
|
---|
2 | * All rights reserved
|
---|
3 | *
|
---|
4 | * See the file LICENSE.txt for information on redistributing this software.
|
---|
5 | */
|
---|
6 |
|
---|
7 | #include "state.h"
|
---|
8 | #include "cr_spu.h"
|
---|
9 |
|
---|
10 | SPUDispatchTable diff_api;
|
---|
11 |
|
---|
12 | void crStateFlushFunc( CRStateFlushFunc func )
|
---|
13 | {
|
---|
14 | CRContext *g = GetCurrentContext();
|
---|
15 |
|
---|
16 | g->flush_func = func;
|
---|
17 | }
|
---|
18 |
|
---|
19 | void crStateFlushArg( void *arg )
|
---|
20 | {
|
---|
21 | CRContext *g = GetCurrentContext();
|
---|
22 |
|
---|
23 | g->flush_arg = arg;
|
---|
24 | }
|
---|
25 |
|
---|
26 | void crStateDiffAPI( SPUDispatchTable *api )
|
---|
27 | {
|
---|
28 | if (!diff_api.AlphaFunc)
|
---|
29 | {
|
---|
30 | /* Called when starting up Chromium */
|
---|
31 | crSPUInitDispatchTable( &(diff_api) );
|
---|
32 | }
|
---|
33 | crSPUCopyDispatchTable( &(diff_api), api );
|
---|
34 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.