VirtualBox

Changeset 39061 in vbox


Ignore:
Timestamp:
Oct 20, 2011 3:53:11 PM (13 years ago)
Author:
vboxsync
Message:

back out r74471 since it causes crashes

Location:
trunk/src/VBox/Additions/common/crOpenGL/pack
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_context.c

    r39051 r39061  
    173173    /* Fill in the new context info */
    174174    /* XXX fix-up sharedCtx param here */
    175 #ifdef CR_DUP_CTXSTATE
    176175    pack_spu.context[slot].clientState = crStateCreateContext(NULL, visual, NULL);
    177 #else
    178     pack_spu.context[slot].clientState = crStateGetCurrent();
    179 #endif
    180     CRASSERT(pack_spu.context[slot].clientState);
    181176    pack_spu.context[slot].clientState->bufferobject.retainBufferData = GL_TRUE;
    182177    pack_spu.context[slot].serverCtx = serverCtx;
     
    207202        crPackDestroyContext( context->serverCtx );
    208203
    209 #ifdef CR_DUP_CTXSTATE
    210204    crStateDestroyContext( context->clientState );
    211 #endif
    212205
    213206    context->clientState = NULL;
     
    263256
    264257        crPackSetContext( thread->packer );
    265 #ifdef CR_DUP_CTXSTATE
    266258        crStateMakeCurrent( newCtx->clientState );
    267 #else
    268         CRASSERT(newCtx->clientState==crStateGetCurrent());
    269 #endif
    270259        //crStateSetCurrentPointers(newCtx->clientState, &thread->packer->current);
    271260        serverCtx = pack_spu.context[slot].serverCtx;
     
    273262    else {
    274263        thread->currentContext = NULL;
    275 #ifdef CR_DUP_CTXSTATE
    276264        crStateMakeCurrent( NULL );
    277 #endif
    278265        newCtx = NULL;
    279266        serverCtx = 0;
  • trunk/src/VBox/Additions/common/crOpenGL/pack/packspu_init.c

    r39051 r39061  
    5757
    5858    packspuCreateFunctions();
    59 #ifdef CR_DUP_CTXSTATE
    6059    crStateInit();
    61 #endif
    6260
    6361    return &pack_functions;
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