VirtualBox

Changeset 44924 in vbox


Ignore:
Timestamp:
Mar 5, 2013 11:21:27 AM (12 years ago)
Author:
vboxsync
Message:

crOpenGL: fix dealing with default mural

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

Legend:

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

    r44860 r44924  
    7979    const char * env;
    8080
    81     defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, 0);
     81    defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID);
    8282    CRASSERT(defaultMural);
    8383
     
    283283    const char * env;
    284284
    285     defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, 0);
     285    defaultMural = (CRMuralInfo *) crHashtableSearch(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID);
    286286    CRASSERT(defaultMural);
    287287
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c

    r44816 r44924  
    329329    cr_server.muralTable = crAllocHashtable();
    330330    defaultMural = (CRMuralInfo *) crCalloc(sizeof(CRMuralInfo));
    331     crHashtableAdd(cr_server.muralTable, 0, defaultMural);
     331    defaultMural->spuWindow = CR_RENDER_DEFAULT_WINDOW_ID;
     332    defaultMural->CreateInfo.externalID = -1;
     333    crHashtableAdd(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID, defaultMural);
    332334
    333335    cr_server.programTable = crAllocHashtable();
     
    411413    cr_server.muralTable = crAllocHashtable();
    412414    defaultMural = (CRMuralInfo *) crCalloc(sizeof(CRMuralInfo));
    413     crHashtableAdd(cr_server.muralTable, 0, defaultMural);
     415    defaultMural->spuWindow = CR_RENDER_DEFAULT_WINDOW_ID;
     416    defaultMural->CreateInfo.externalID = -1;
     417    crHashtableAdd(cr_server.muralTable, CR_RENDER_DEFAULT_WINDOW_ID, defaultMural);
    414418
    415419    cr_server.programTable = crAllocHashtable();
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c

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