VirtualBox

Ignore:
Timestamp:
Aug 20, 2010 9:40:40 AM (14 years ago)
Author:
vboxsync
Message:

crOpenGL: resource sharing between contexts

File:
1 edited

Legend:

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

    r30440 r31808  
    793793        char psz[200];
    794794        GLint ctxID;
     795        CRContext* pContext;
    795796
    796797        rc = SSMR3GetMem(pSSM, &key, sizeof(key));
     
    808809        ctxID = crServerDispatchCreateContextEx(createInfo.pszDpyName, createInfo.visualBits, 0, key, createInfo.internalID);
    809810        CRASSERT((int64_t)ctxID == (int64_t)key);
     811
     812        pContext = (CRContext*) crHashtableSearch(cr_server.contextTable, key);
     813        CRASSERT(pContext);
     814        pContext->shared->id=-1;
    810815    }
    811816
     
    821826        CRASSERT(pContext);
    822827
    823         rc = crStateLoadContext(pContext, pSSM);
     828        rc = crStateLoadContext(pContext, cr_server.contextTable, pSSM);
    824829        AssertRCReturn(rc, rc);
    825830    }
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