VirtualBox

Ignore:
Timestamp:
Jan 25, 2013 6:38:32 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: window destuction fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_context.c

    r44290 r44389  
    179179    CRClientNode *pNode;
    180180    int found=false;
     181    int spuContext;
    181182
    182183    crCtxInfo = (CRContextInfo *) crHashtableSearch(cr_server.contextTable, ctx);
     
    198199        crFree(crCtxInfo->CreateInfo.pszDpyName);
    199200
    200     if (crCtxInfo->SpuContext >= 0)
    201         cr_server.head_spu->dispatch_table.DestroyContext(crCtxInfo->SpuContext);
     201    spuContext = crCtxInfo->SpuContext;
    202202
    203203    crFree(crCtxInfo);
     
    266266        cr_server.currentCtxInfo = &cr_server.MainContextInfo;
    267267    }
     268
     269    if (spuContext >= 0)
     270        cr_server.head_spu->dispatch_table.DestroyContext(spuContext);
    268271}
    269272
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