Changeset 78375 in vbox for trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c
- Timestamp:
- May 3, 2019 9:51:02 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_misc.c
r78341 r78375 98 98 GLint buffer; 99 99 100 crStateGetIntegerv( GL_DRAW_BUFFER, &buffer);100 crStateGetIntegerv(&pack_spu.StateTracker, GL_DRAW_BUFFER, &buffer); 101 101 /*Usually buffer==GL_BACK, so put this extra check to simplify boolean eval on runtime*/ 102 102 return (buffer != GL_BACK) … … 116 116 hadtoflush = packspuSyncOnFlushes(); 117 117 118 crStateDrawBuffer( mode);118 crStateDrawBuffer(&pack_spu.StateTracker, mode); 119 119 crPackDrawBuffer(mode); 120 120 … … 197 197 void PACKSPU_APIENTRY packspu_NewList(GLuint list, GLenum mode) 198 198 { 199 crStateNewList( list, mode);199 crStateNewList(&pack_spu.StateTracker, list, mode); 200 200 crPackNewList(list, mode); 201 201 } … … 203 203 void PACKSPU_APIENTRY packspu_EndList() 204 204 { 205 crStateEndList( );205 crStateEndList(&pack_spu.StateTracker); 206 206 crPackEndList(); 207 207 } … … 366 366 crPackGetPolygonStipple( mask, &writeback ); 367 367 #ifdef CR_ARB_pixel_buffer_object 368 if (!crStateIsBufferBound( GL_PIXEL_PACK_BUFFER_ARB))368 if (!crStateIsBufferBound(&pack_spu.StateTracker, GL_PIXEL_PACK_BUFFER_ARB)) 369 369 #endif 370 370 { … … 381 381 crPackGetPixelMapfv( map, values, &writeback ); 382 382 #ifdef CR_ARB_pixel_buffer_object 383 if (!crStateIsBufferBound( GL_PIXEL_PACK_BUFFER_ARB))383 if (!crStateIsBufferBound(&pack_spu.StateTracker, GL_PIXEL_PACK_BUFFER_ARB)) 384 384 #endif 385 385 { … … 397 397 398 398 #ifdef CR_ARB_pixel_buffer_object 399 if (!crStateIsBufferBound( GL_PIXEL_PACK_BUFFER_ARB))399 if (!crStateIsBufferBound(&pack_spu.StateTracker, GL_PIXEL_PACK_BUFFER_ARB)) 400 400 #endif 401 401 { … … 412 412 crPackGetPixelMapusv( map, values, &writeback ); 413 413 #ifdef CR_ARB_pixel_buffer_object 414 if (!crStateIsBufferBound( GL_PIXEL_PACK_BUFFER_ARB))414 if (!crStateIsBufferBound(&pack_spu.StateTracker, GL_PIXEL_PACK_BUFFER_ARB)) 415 415 #endif 416 416 { … … 449 449 return; 450 450 case GL_SHARE_CONTEXT_RESOURCES_CR: 451 crStateShareContext( value);451 crStateShareContext(&pack_spu.StateTracker, value); 452 452 break; 453 453 case GL_RCUSAGE_TEXTURE_SET_CR: 454 454 { 455 455 Assert(value); 456 crStateSetTextureUsed( value, GL_TRUE);456 crStateSetTextureUsed(&pack_spu.StateTracker, value, GL_TRUE); 457 457 break; 458 458 } … … 462 462 #ifdef DEBUG 463 463 { 464 CRContext *pCurState = crStateGetCurrent( );464 CRContext *pCurState = crStateGetCurrent(&pack_spu.StateTracker); 465 465 CRTextureObj *tobj = (CRTextureObj*)crHashtableSearch(pCurState->shared->textureTable, value); 466 466 Assert(tobj); 467 467 } 468 468 #endif 469 crStateSetTextureUsed( value, GL_FALSE);469 crStateSetTextureUsed(&pack_spu.StateTracker, value, GL_FALSE); 470 470 break; 471 471 } … … 481 481 int writeback = 1; 482 482 GLenum return_val = (GLenum) 0; 483 CRContext *pCurState = crStateGetCurrent( );483 CRContext *pCurState = crStateGetCurrent(&pack_spu.StateTracker); 484 484 NOREF(pCurState); /* it's unused, but I don't know about side effects.. */ 485 485 … … 620 620 crSetTSD(&_PackTSD, NULL); 621 621 622 crStateVBoxAttachThread( );622 crStateVBoxAttachThread(&pack_spu.StateTracker); 623 623 } 624 624 … … 701 701 } 702 702 703 crStateVBoxDetachThread( );703 crStateVBoxDetachThread(&pack_spu.StateTracker); 704 704 } 705 705
Note:
See TracChangeset
for help on using the changeset viewer.