VirtualBox

Ignore:
Timestamp:
May 3, 2019 9:51:02 PM (6 years ago)
Author:
vboxsync
Message:

Additions/common/crOpengl,GuestHost/OpenGL,HostServices/SharedOpenGL: Eliminate all global variables from the state tracker library (state_tracker) in preparation of the SPU DLL merging, bugref:9435

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_flush.c

    r69392 r78375  
    88#include "cr_spu.h"
    99
    10 SPUDispatchTable diff_api;
    11 
    12 void crStateFlushFunc( CRStateFlushFunc func )
     10void crStateFlushFunc(PCRStateTracker pState, CRStateFlushFunc func )
    1311{
    14         CRContext *g = GetCurrentContext();
     12        CRContext *g = GetCurrentContext(pState);
    1513
    1614        g->flush_func = func;
    1715}
    1816
    19 void crStateFlushArg( void *arg )
     17void crStateFlushArg(PCRStateTracker pState, void *arg )
    2018{
    21         CRContext *g = GetCurrentContext();
     19        CRContext *g = GetCurrentContext(pState);
    2220
    2321        g->flush_arg = arg;
    2422}
    2523
    26 void crStateDiffAPI( SPUDispatchTable *api )
     24void crStateDiffAPI(PCRStateTracker pState, SPUDispatchTable *api )
    2725{
    28         if (!diff_api.AlphaFunc)
     26        if (!pState->diff_api.AlphaFunc)
    2927        {
    3028                /* Called when starting up Chromium */
    31                 crSPUInitDispatchTable( &(diff_api) );
     29                crSPUInitDispatchTable( &pState->diff_api );
    3230        }
    33         crSPUCopyDispatchTable( &(diff_api), api );
     31        crSPUCopyDispatchTable( &pState->diff_api, api );
    3432}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette