VirtualBox

Ignore:
Timestamp:
Mar 7, 2013 12:33:54 PM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: fix default mural refs

File:
1 edited

Legend:

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

    r44949 r44951  
    330330    defaultMural = (CRMuralInfo *) crCalloc(sizeof(CRMuralInfo));
    331331    defaultMural->spuWindow = CR_RENDER_DEFAULT_WINDOW_ID;
    332     crHashtableAdd(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID, defaultMural);
     332    crHashtableAdd(cr_server.muralTable, 0, defaultMural);
    333333
    334334    cr_server.programTable = crAllocHashtable();
     
    413413    defaultMural = (CRMuralInfo *) crCalloc(sizeof(CRMuralInfo));
    414414    defaultMural->spuWindow = CR_RENDER_DEFAULT_WINDOW_ID;
    415     crHashtableAdd(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID, defaultMural);
     415    crHashtableAdd(cr_server.muralTable, 0, defaultMural);
    416416
    417417    cr_server.programTable = crAllocHashtable();
     
    829829
    830830    if (!pMural->CreateInfo.externalID)
     831    {
     832        CRASSERT(!key);
    831833        return;
     834    }
    832835
    833836    if (crHashtableSearch(pData->usedMuralTable, pMural->CreateInfo.externalID))
     
    873876
    874877    if (!pMural->CreateInfo.externalID)
     878    {
     879        CRASSERT(!key);
    875880        return;
     881    }
    876882
    877883    if (!CR_STATE_SHAREDOBJ_USAGE_IS_SET(pMural, pData->pContextInfo->pContext))
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