VirtualBox

Changeset 44951 in vbox for trunk/src/VBox/HostServices


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

crOpenGL: fix default mural refs

Location:
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
Files:
4 edited

Legend:

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

    r44924 r44951  
    7979    const char * env;
    8080
    81     defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID);
     81    defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, 0);
    8282    CRASSERT(defaultMural);
    8383
     
    283283    const char * env;
    284284
    285     defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID);
     285    defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, 0);
    286286    CRASSERT(defaultMural);
    287287
  • 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))
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_muralfbo.c

    r44893 r44951  
    102102    int overlappingScreenCount, primaryS, i;
    103103
     104    if (!mural->CreateInfo.externalID)
     105        return;
     106
    104107    if (!mural->width || !mural->height)
    105108        return;
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c

    r44924 r44951  
    5050    CrVrScrCompositorEntryInit(&mural->CEntry, &Tex);
    5151
    52     defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID);
     52    defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, 0);
    5353    CRASSERT(defaultMural);
    5454    mural->gX = 0;
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