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/HostServices/SharedOpenGL/crserverlib/server_bufferobject.cpp

    r78263 r78375  
    4646    }
    4747
    48     crStateGenBuffersARB(n, local_buffers);
     48    crStateGenBuffersARB(&cr_server.StateTracker, n, local_buffers);
    4949
    5050    crServerReturnValue( local_buffers, n * sizeof(*local_buffers) );
     
    6060    }
    6161
    62     crStateDeleteBuffersARB( n, buffer );
     62    crStateDeleteBuffersARB(&cr_server.StateTracker, n, buffer );
    6363}
    6464
     
    101101crServerDispatchBindBufferARB(GLenum target, GLuint buffer)
    102102{
    103     crStateBindBufferARB(target, buffer);
    104     cr_server.head_spu->dispatch_table.BindBufferARB(target, crStateGetBufferHWID(buffer));
     103    crStateBindBufferARB(&cr_server.StateTracker, target, buffer);
     104    cr_server.head_spu->dispatch_table.BindBufferARB(target, crStateGetBufferHWID(&cr_server.StateTracker, buffer));
    105105}
    106106
     
    110110    /* since GenBuffersARB issued to host ogl only on bind + some other ops, the host drivers may not know about them
    111111     * so use state data*/
    112     GLboolean retval = crStateIsBufferARB(buffer);
     112    GLboolean retval = crStateIsBufferARB(&cr_server.StateTracker, buffer);
    113113    crServerReturnValue( &retval, sizeof(retval) );
    114114    return retval; /* WILL PROBABLY BE IGNORED */
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