Changeset 78375 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.cpp
- Timestamp:
- May 3, 2019 9:51:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_misc.cpp
r78263 r78375 328 328 switch (target) { 329 329 case GL_SHARE_CONTEXT_RESOURCES_CR: 330 crStateShareContext( value);330 crStateShareContext(&cr_server.StateTracker, value); 331 331 break; 332 332 case GL_RCUSAGE_TEXTURE_SET_CR: 333 crStateSetTextureUsed( value, GL_TRUE);333 crStateSetTextureUsed(&cr_server.StateTracker, value, GL_TRUE); 334 334 break; 335 335 case GL_RCUSAGE_TEXTURE_CLEAR_CR: 336 crStateSetTextureUsed( value, GL_FALSE);336 crStateSetTextureUsed(&cr_server.StateTracker, value, GL_FALSE); 337 337 break; 338 338 case GL_PIN_TEXTURE_SET_CR: 339 crStatePinTexture( value, GL_TRUE);339 crStatePinTexture(&cr_server.StateTracker, value, GL_TRUE); 340 340 break; 341 341 case GL_PIN_TEXTURE_CLEAR_CR: 342 crStatePinTexture( value, GL_FALSE);342 crStatePinTexture(&cr_server.StateTracker, value, GL_FALSE); 343 343 break; 344 344 case GL_SHARED_DISPLAY_LISTS_CR: … … 502 502 GLuint tID, fboID; 503 503 GLenum status; 504 CRContext *ctx = crStateGetCurrent( );504 CRContext *ctx = crStateGetCurrent(&cr_server.StateTracker); 505 505 506 506 gl->GenTextures(1, &tID); … … 601 601 GLint dRow; 602 602 GLuint pboId, sRow; 603 CRContext *ctx = crStateGetCurrent( );603 CRContext *ctx = crStateGetCurrent(&cr_server.StateTracker); 604 604 605 605 gl->GenBuffersARB(1, &pboId); … … 897 897 CR_BLITTER_CONTEXT Ctx; 898 898 CRMuralInfo *mural; 899 CRContext *ctx = crStateGetCurrent( );899 CRContext *ctx = crStateGetCurrent(&cr_server.StateTracker); 900 900 PVBOXVR_TEXTURE pDrawTex, pReadTex; 901 901 VBOXVR_TEXTURE DrawTex, ReadTex; … … 992 992 GLbitfield mask, GLenum filter) 993 993 { 994 CRContext *ctx = crStateGetCurrent( );994 CRContext *ctx = crStateGetCurrent(&cr_server.StateTracker); 995 995 bool fTryBlitter = false; 996 996 #ifdef CR_CHECK_BLITS … … 1274 1274 void SERVER_DISPATCH_APIENTRY crServerDispatchDrawBuffer( GLenum mode ) 1275 1275 { 1276 crStateDrawBuffer( mode );1277 1278 if (!crStateGetCurrent( )->framebufferobject.drawFB)1276 crStateDrawBuffer(&cr_server.StateTracker, mode ); 1277 1278 if (!crStateGetCurrent(&cr_server.StateTracker)->framebufferobject.drawFB) 1279 1279 { 1280 1280 if (mode == GL_FRONT || mode == GL_FRONT_LEFT || mode == GL_FRONT_RIGHT) … … 1362 1362 void SERVER_DISPATCH_APIENTRY crServerDispatchReadBuffer( GLenum mode ) 1363 1363 { 1364 crStateReadBuffer( mode );1364 crStateReadBuffer(&cr_server.StateTracker, mode ); 1365 1365 1366 1366 if (crServerIsRedirectedToFBO() 1367 1367 && cr_server.curClient->currentMural->aidFBOs[0] 1368 && !crStateGetCurrent( )->framebufferobject.readFB)1368 && !crStateGetCurrent(&cr_server.StateTracker)->framebufferobject.readFB) 1369 1369 { 1370 1370 CRMuralInfo *mural = cr_server.curClient->currentMural; … … 1433 1433 { 1434 1434 GLenum retval, err; 1435 CRContext *ctx = crStateGetCurrent( );1435 CRContext *ctx = crStateGetCurrent(&cr_server.StateTracker); 1436 1436 retval = ctx->error; 1437 1437 … … 1453 1453 crServerMakeTmpCtxCurrent( GLint window, GLint nativeWindow, GLint context ) 1454 1454 { 1455 CRContext *pCtx = crStateGetCurrent( );1455 CRContext *pCtx = crStateGetCurrent(&cr_server.StateTracker); 1456 1456 CRContext *pCurCtx = NULL; 1457 1457 GLuint idDrawFBO = 0, idReadFBO = 0; … … 1890 1890 GLvoid crServerSpriteCoordReplEnable(GLboolean fEnable) 1891 1891 { 1892 CRContext *g = crStateGetCurrent( );1892 CRContext *g = crStateGetCurrent(&cr_server.StateTracker); 1893 1893 CRTextureState *t = &(g->texture); 1894 1894 GLuint curTextureUnit = t->curTextureUnit; … … 1948 1948 void SERVER_DISPATCH_APIENTRY crServerDispatchEnd( void ) 1949 1949 { 1950 CRContext *g = crStateGetCurrent( );1950 CRContext *g = crStateGetCurrent(&cr_server.StateTracker); 1951 1951 GLenum mode = g->current.mode; 1952 1952 1953 crStateEnd( );1953 crStateEnd(&cr_server.StateTracker); 1954 1954 cr_server.head_spu->dispatch_table.End(); 1955 1955 … … 1963 1963 { 1964 1964 #ifdef DEBUG 1965 CRContext *ctx = crStateGetCurrent( );1965 CRContext *ctx = crStateGetCurrent(&cr_server.StateTracker); 1966 1966 SPUDispatchTable *gl = &cr_server.head_spu->dispatch_table; 1967 1967 … … 2012 2012 CR_SERVER_DUMP_DRAW_ENTER(); 2013 2013 2014 crStateBegin( mode);2014 crStateBegin(&cr_server.StateTracker, mode); 2015 2015 cr_server.head_spu->dispatch_table.Begin(mode); 2016 2016 }
Note:
See TracChangeset
for help on using the changeset viewer.